开发者

How to dynamically set position of widget in RelaltiveLayout?

I am using RelativeLayout with Imageview and few buttons.

I am dynamically changing the size of the ImageView according to the size of the screen (usingDisplay class). The problem is that one of the button's location refers开发者_开发知识库 to the Imageview.

How do I dynamically change its location according to the new size of the Imageview?


try calling requestLayout() when you updated the imageView.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜