Layout usage of nested relativelayout in LinearLayout of Android Application
•
Android
Want to place the button and listview on the left and right of the screen respectively. Simply use Android: gravity and Android: layout_ Gravity failed. Therefore, relativelayout is involved. Key: Android: Layout_ alignParentRight="true", android:layout_ alignParentLeft="true":
The effect is:
PS: a little experience of my project layout is attached
Layout of radiogroup at the beginning_ Width = "wrap_content", the desired effect cannot be achieved by setting the right. To change to fill_ The size of the parent RadioButton is larger than that of the textview, so when the textview is displayed, set Android: gravity = "center" > in the LinearLayout.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码