| Attribute name |
Related methods |
|
| android:background |
setBackground(int)
|
A drawable to use as the background. |
| android:clickable |
setClickable(boolean)
|
Defines whether this view reacts to click events. |
| android:drawingCacheQuality |
setDrawingCacheQuality(int)
|
Defines the quality of translucent drawing caches. |
| android:fadingEdge |
setVerticalFadingEdgeEnabled(boolean)
|
Defines which edges should be fadeded on scrolling. |
| android:fadingEdgeLength |
getVerticalFadingEdgeLength()
|
Defines the length of the fading edges. |
| android:fitStatusBar |
|
Boolean internal attribute to adjust view layout based on the status bar location. |
| android:focusType |
setFocusType(int)
|
Sets the circumstances under which this view will take focus. |
| android:focusable |
setFocusable(boolean)
|
Boolean that controls whether a view can take focus. |
| android:focusableInTouchMode |
setFocusableInTouchMode(boolean)
|
Boolean that controls whether a view can take focus while in touch mode. |
| android:freezeDisabled |
setFreezeDisabled(boolean)
|
If set, no icicle will be saved for this view when it is being
frozen. |
| android:id |
setId(int)
|
Supply an identifier name for this view, to later retrieve it
with View.findViewById() or
Activity.findViewById(). |
| android:nextFocusDown |
|
Defines the next view to give focus to when the next focus is
FOCUS_DOWN
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed. |
| android:nextFocusLeft |
|
Defines the next view to give focus to when the next focus is
FOCUS_LEFT. |
| android:nextFocusRight |
|
Defines the next view to give focus to when the next focus is
FOCUS_RIGHT
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed. |
| android:nextFocusUp |
|
Defines the next view to give focus to when the next focus is
FOCUS_UP
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed. |
| android:padding |
setPadding(int,int,int,int)
|
Sets the padding, in pixels, of all four edges. |
| android:paddingBottom |
setPadding(int,int,int,int)
|
Sets the padding, in pixels, of the bottom edge; see padding. |
| android:paddingLeft |
setPadding(int,int,int,int)
|
Sets the padding, in pixels, of the left edge; see padding. |
| android:paddingRight |
setPadding(int,int,int,int)
|
Sets the padding, in pixels, of the right edge; see padding. |
| android:paddingTop |
setPadding(int,int,int,int)
|
Sets the padding, in pixels, of the top edge; see padding. |
| android:scrollX |
|
The initial horizontal scroll offset, in pixels. |
| android:scrollY |
|
The initial vertical scroll offset, in pixels. |
| android:scrollbarDefaultDelayBeforeFade |
|
Delay in milliseconds before the scrollbars disappear. |
| android:scrollbarFadeDuration |
|
Duration in milliseconds of the fade when the scrollbars disappear. |
| android:scrollbarSize |
|
Sets the width of vertical scrollbars and height of horizontal scrollbars. |
| android:scrollbarThumbHorizontal |
|
Drawable for horizontal scrollbars' thumb. |
| android:scrollbarThumbVertical |
|
Drawable for vertical scrollbars' thumb. |
| android:scrollbarTrackHorizontal |
|
Drawable for horizontal scrollbars' track. |
| android:scrollbarTrackVertical |
|
Drawable for vertical scrollbars' track. |
| android:scrollbars |
|
Defines which scrollbars should be displayed on scrolling or not. |
| android:visibility |
setVisibility(int)
|
Controls the initial visibility of the view. |