【发布时间】:2016-10-19 01:03:23
【问题描述】:
这个问题很适合sample found in the official ViewGroup documentation。
我不明白为什么下面这行是正确的
mTmpContainerRect.left = rightPos - width - lp.leftMargin;
我觉得应该是的
mTmpContainerRect.left = rightPos - width - lp.leftMargin - lp.rightMargin;
有人能解释一下吗?谢谢。
【问题讨论】:
标签: android android-layout viewgroup