RelativeLayout differences between 1.5 and 2.1

假如想象 提交于 2019-12-04 11:18:47

For relative layout layout_gravity is not used.

Also, you're using conflicting attribtues centerInParent and alignParentLeft.

Use only one of them.

You can use layout_centerVertical="true" layout_alignParentLeft="true"

RelativeLayout receives many bug fixes in 1.6 and then 2.0 :)

For one, judging by the fact that it's broken in the earliest version you're testing with and works as expected in the later versions...sounds like a bug that was fixed.

However, unless I'm oversimplifying because you're only showing a few basic sample screen shots, I would do this with nested LinearLayouts anyway.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!