Android Layout Properties Encyclopedia _android

Source: Internet
Author: User

This article summarizes the meaning and usage of the layout attribute in Android. Share to everyone for your reference. Specifically as follows:

Layout:

Absolutelayout (Absolute layout):
Xmlns:android= "Http://scmemas.android.com/apk/res/android"
Style= "@ ..."
Android:clipchildren= "True|false"
Android:cliptopadding= "True|false"
android:layoutanimation= "@---"
Android:animationcache= "True|false"
Android:persistentdrawingcache= "None|animation|scrolling|all": Continuous cache drawing
Android:alwaysdrawnwithcache= "True|false"
Android:andstatesfromchildre= "True|false"
Android:descendantfocusability= "Beforedescendants|afterdescendants|blocksdescendants": Descendants can focus
Android:id= "@+id/absolutelayout"
android:tag= "@---"
android:android:scrollx= "---"
Android:android:scrolly= "---"
android:background= "@---"
android:padding= "----"
android:paddingleft= "----"
android:paddingtop= "----"
android:paddingright= "----"
Android:paddingbotton= "---"
Android:focusable= "True|false"
Android:focusableintouchmode= "True|false"
Android:visibility= "Visible|invisible|gone"
Android:fitssystemwindows= "True|false": Suitable for system windows
Android:scrollbars= "None|horizontal|vertical"
Android:scrollbarstyle= "Insideoverlay (covered) |insideinset (inset) |outsideoverlay (outer cover) |outsideinset (external)
Android:isscrollcontainer= "True|false": Is a scrolling collection
Android:fadescrollbars= "True|false": Faded scroll bar
Android:scrollbarfadeduration= "---": Scroll fade Out
Android:scrolldefaultdelaybeforefade= "---": Default delay before scrolling
Android:scrollbarsize= "---"
Android:scrollbarthumbhorizontal= "@----": Thumb horizontal scroll bar
Android:scrollbarthumbvertical= "@----": Thumb vertical scroll bar
Android:scrollbartrackvertical= "@---": Vertical scroll bar track
Android:scrollbartrackhorizontal= "@---": Horizontal scroll bar track
android:scrollbaralwaysdrawhorizontaltrack= "True|false": Horizontal scroll bar always attracts track
android:scrollbaralwaysdrawverticaltrack= "True|false": the vertical scroll bar always attracts the track
Android:fadingedge= "none|horizontal|vertical": The brink of decline
Android:fadingedgelength= "---": side-length Fading
android:nextfocusleft= "----": lower left focus
Android:nextfocusup= "---": Next key registration
Android:nextfocusright= "---": the next key to the right
Android:nextfocusdown= "---": Next focus Move Down
Android:clickable= "True|false": click
Android:longclickable= "True|false"
Android:saveenabled= "True|false": Enable Save
Android:drawingcachequality= "Auto|low|hight": Drawing cache Quality
Android:keepscreenon= "True|false": Keep screen
Android:duplicateparentstate= "True|false": Repeating parent state
Android:minheight= "---":
Android:minwidth= "----":
Android:soundeffectenabled= "True|false": Audio Enabled
Android:hapticfeedbackenable= "True|false": Tactile feedback Enabled
android:contentdescription= "@---": Content overview
android:onclick= "@---":
Android:layout_gravity= "top|bottom|right|left|center_vertical|center_horizontal|fill_vertical|fill_horizontal| Center|fill|clip_vertical|clip_horizontal ": Gravity
Android:layout_width= "Fill_parent|match_parent|wrap_content"
android:llayout_height= "Fill_parent|match) parent_wrap_content"
Android:layout_margin= "":
Android:layout_marginleft= ""
Android:layout_margintop= ""
Android:layout_marginright= ""
Android:layout_marginbottom= ""

Dialerfilter (Dialer filter):

Expandablelistview (extensible List View):
Framelayout (Pin layout):
GridView (grid view):
Horizontalscrollview (horizontal scrolling view):
Imageswither (Image switching):
LinearLayout (Linear layout):

ListView (List view):
Mediacontroller (Media Controller):
Radiogroup (radio button Group):
Relativelayout (relative layout):
ScrollView (scrolling view):
Slidingdrawer (sliding drawer):
Tabhost (label host):
Tabwidget (Label control):
Tablelayout (table layout):
TableRow (table row):
Textswitcher (text switch):
Viewanimator (view animation):
Viewflipper (see Foley Cooper):
Viewswitcher (view toggle):
---------------------------------------------------
Gestureoverlayview (Gesture overlay view):
Surfaceview (view of expression):
View (see):
Viewstub (view stub):
WebView (Web view):
AnalogClock (analog clock):
Autocompletetextview (Auto-complete text view):
button (buttons):
CheckBox (check box):
Checkedtextview (check the text view):
Chronometer (Time meter):
DatePicker (date selector):
DigitalClock (Digital clock):
EditText (edit text):
Gallery (gallery):
ImageButton (image button):
ImageView (Image view):
Multiautocompletetextview (multiple autocomplete text Viewing):
ProgressBar (Progress):
Quickcontactbadge (Quick Contact badge):
Radio button (radio buttons):
Ratingbar (rating bar):
SeekBar (Search bar: Drag progress bar):
Spinner (fine tuning):
TextView (text view):
Timepicker (Time picker):
ToggleButton (toggle button):
Twolinelistitem (Two-line list item):
Videoview (Video Viewing):
Zoombutton (zoom button):
Zoomcontrols (Zoom control):
Include (included):
-------------------------------
<merge></merge> (merger):
Xmlns:android= "Http://schemas.android.com/apk/res/android"
Android:layout_gravity= "top|bottom|left|right|center_vertical|fill_vertical|center_horizontal|fill_horizontal| Center|fill|clip_vertical|clip_horizontal "
Android:layout_width= "Fill_parent|match_parent|wrap_content"
android:layout_height= "Fill_parent|match_parent|wrap_content"
Android:layout_margin= ""
Android:layout_marginlef= ""
Android:layout_margintop= ""
Android:layout_marginright= ""
Android:layout_marginbottom= ""

I hope this article will help you with your Android program.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.