Introduction to Android Layout and component and component properties
First, the layout:
1) Linear layout: Control price is arranged in linear direction
2) Table layout: Standard rows and columns as tables
3) Relative layout: Make the control appear anywhere in the layout by means of relative positioning
4) Frame layout: Subclasses appear in the upper-left corner of the layout
5) Grid layout: Similar to the table layout, but more flexible than the table layout, you can easily adjust the partition module
6) Absolute layout: use absolute coordinates to stack components
Second, commonly used components:
Three, often Android component properties introduction
Property value |
Value type |
Example |
Index |
Int |
0 |
Instance |
Int |
5 |
Class |
String |
Android.widget.TextView |
Package |
String |
Com.jike.test |
Content-desc |
String |
Contact |
Checkable |
Boolean |
False |
Checked |
Boolean |
False |
Clickable |
Boolean |
True |
Enable |
Boolean |
False |
Focusable |
Boolean |
False |
Focused |
Boolean |
False |
Scrollable |
Boolean |
False |
Long-clickable |
Boolean |
False |
Password |
Boolean |
False |
Selected |
Boolean |
False |
Bounds |
Rect |
[366,999] [708,1197] |
Android Wireless test-uiautomator Uiselector API introduction of the two