今天在适配2.2版本的时候发现在FrameLayout中嵌套元素并为元素设置layout_margin并未起作用,其元素还是顶在FrameLayout的最上面。后来在so上看到了需要设置潜逃元素的layout_gravity属性。 参考链接如下: http://stackoverflow.com/questions/5401952/framelayout-margin-not-working
转载于:https://my.oschina.net/zhoubing19820720/blog/198763