Common Properties for Android controls (including layouts):
Android:id= the id,denglu_et_name of the "@+id/denglu_et_name" settings control can be replaced with the name of the ID number you need
Android:layout_width= "Wrap_content" to set the control's width android:layout_height= "wrap_content" to set the control's high setting control Piece width-height value: adapts to the content of the wrap_content, fills the container with the Match_parent and fill_parent (this property is the same as match_parent, but rarely used)
Android:background= "#89DDAA77" sets the background of the control, you can use the color values directly, or you can use the picture
android:gravity= "Top|right" The location of the content in the control Common properties are: top, bottom, left, right, center, Center_vertical, Center_horizontaltop for the top, bottom for the bottom, left for the right side, center for center, center_vertical Vertical Center, Center_ Horizontal is centered horizontally. Properties can be used in conjunction with the ' | ' Two attributes are separated from each other.
android:visibility= "visible" Set the state of a control visible indicates that the control is visible invisible indicates that the control is not visible, but the control retains its place of possession gone indicates that the control is hidden, and the control does not retain the occupying position
android:padding= "10DP" control up and down the content gap is 10dpandroid:paddingtop= "10DP" control the top of the content with the gap is 10dpandroid:paddingbottom= The gap between the bottom of the "10DP" control and the content is the 10dpandroid:paddingleft= "10DP" control to the left and the content of the gap is 10dpandroid:paddingright= "10DP" control to the right and the content of the gap is 1 0dp
Android:layout_margin= "10DP" controls the gap between the top and left side of the control is 10dpandroid:layout_margintop= "10DP" control with the rest of the control 10dpandroid:layo Ut_marginbottom= the gap between the bottom of the "10DP" control and other controls is 10dpandroid:layout_marginleft= the gap between the left side of the "10DP" control and the other controls is 10dpandroid:layout_ marginright= "10DP" control has a 10dp gap to the right of the other controls
This article is from the "Remember" blog, be sure to keep this source http://ziruo.blog.51cto.com/10107518/1655441
Android controls have property IDs, width, height, background, content location, state, gaps between content and boundaries, gaps between boundaries and other control boundaries