View position和LayoutParams位置有什么区别?

时间:2012-02-24 12:03:08

标签: android view position

我想知道ImageView位置字段(mTop,mBottom,mLeft和mRight)与同一ImageView的layoutParams位置字段(mTop,mBottom,mLeft,mRight,mMarginLeft,mMarginTop)之间的区别。

我在我的主relativeLayout中添加一个ImageView,如果我没有设置两个位置参数,图像要么在0,0位置绘制,要么是正确的位置,但是当我开始翻译动画时,它就像如果是在0,0位置。

感谢您的启发..

0 个答案:

没有答案