阅读背景:

如何获得我的视图在Android中添加的容器的宽度

来源:互联网 

I have a ImageView object inside a LinearLayout. I'm setting an animation to the ImageView which will move image view from point x to y. Now, starting point should be right corner of parent container. My question is , how do i get the dimension of the container in which the view is present. I don't see view.getParent().getWidth() kind of method in view hierachy.I have a ImageView object inside a LinearLayout




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: