Attribute |
Description |
Description |
Android: ID |
Specify the corresponding ID for the control |
|
Android: Text |
Specify the text displayed in the control. Note that strings in the strings. xml file should be used as much as possible here. |
|
Android: gravity |
Specifies the alignment mode of the view component. For example, the center and right positions indicate that the text position in the control is not the control itself. |
|
Android: layout_gravity |
Specifies the iner component alignment. for example, if a button is in linearlayout, you can set it by placing it on the left or right. take the button as an example. For Android: layout_gravity = "right", the button is right-aligned. |
|
Android: textsize |
Specifies the font size in the control. |
|
Android: Background |
Specifies the background color used by the control. The RGB naming method is used. |
|
Android: width |
Width of the control |
|
Android: Height |
Height of the control |
|
Android: layout_width |
Specify the container component width |
|
Android: layout_height |
Height of the container component |
|
Android: layout_weight |
View is a very important attribute, divided by proportion of space |
|
Android: padding * |
Specifies the padding of the control, that is, the content of the control. |
|
Android: sigleline |
If set to true, the control content is displayed in the same row. |
|
Android: scaletype |
Is to control how the image resized/moved to match the siz of the imageview |
|
Android: layout_centerhrizontal |
Horizontal Center |
|
Android: layout_centervertical |
Vertical center |
Android: layout_centerinparent |
Completely centered relative to the parent Element |
|
Android: layout_alignparentbottom |
Stick the lower edge of the parent Element |
|
Android: layout_alignparentleft |
Attach the left edge of the parent Element |
|
Android: layout_alignparentright |
Attach the right edge of the parent Element |
|
Android: layout_alignparenttop |
Attach the upper edge of the parent Element |
|
Android: layout_alignwithparentifmissing |
If the corresponding sibling element cannot be found, the parent element will be used as a reference object. |
|
Android: layout_below |
Below an element |
|
Android: layout_abve |
Above an element |
|
Android: layout_toleftof |
On the left of an element |
|
Android: layout_torightof |
On the Right of an element |
|
Android: layout_aligntop |
The top edge of the element is aligned with the top edge of an element. |
|
Android: layout_alignleft |
The left edge of the element is aligned with the left edge of an element. |
|
Android: layout_alignbottom |
The bottom edge of the element is aligned with the bottom edge of an element. |
|
Android: layout_alignright |
The right edge of the element is aligned with the right edge of an element. |
|
Android: layout_marginbottom |
Distance from the bottom edge of an element |
|
Android: layout_marginleft |
Distance from the left edge of an element |
|
Android: layout_marginright |
Distance from the right edge of an element |
|
Android: layout_margintop |
Distance from the edge of an element |
|
Android: paddingleft |
The distance between the content of this element and the right edge of an element |
|
Android: paddingright |
The distance between the content of this element and the edge of an element |
|
Android: hint |
Prompt information in the input box when edittext is set to null |
|
Android: linearlayout |
It determines the direction of linearlayout. Its value can be vertical, indicating the vertical layout of horizontal, indicating the horizontal layout. |