Property | Possible Values | Notes |
android:layout_width |
| |
android:layout_height | Same as android:layout_width | |
android:orientation | Vertical or horizontal | Used as a property for the container in LinearLayout |
android:layout_weight | Numeric value: determines the ratio by which widgets share empty soace in the container. The lower value occupies more space | |
android:layout_gravity |
| |
android:gravity | Same as android:layout_gravity | Used for the content of a widget |
android:padding |
| |
android:paddingTop |
| |
android:paddingBottom |
| |
android:paddingRight |
| |
android:paddingLeft |
| |
android:layout_alignParentTop | True|false: used in relative layout, aligns the widget’s top edge with the top of the container | |
android:layout_alignParentBottom | True|false: used in relative layout, aligns the widget’s top edge with the bottom of the container | |
android:layout_alignParentLeft | True|false: used in relative layout, aligns the widget’s left edge with the left of the container | |
android:layout_alignParentRight | True|false: used in relative layout, aligns the widget’s right edge with the right of the container |
Android, Android Apps, Best Android Apps, Android phones, Android Applications, Samsung, Samsung Galaxy, Nexus, Google, HTC, LG, Smartphones, Android News
Saturday, February 27, 2010
Android Layout properties
Here is a list of some of the layout properties used in different layout managers in android
Labels:
Layout Properties,
Layout Resources
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment