public
static
final
class
R.attr
extends Object
java.lang.Object | |
↳ | android.support.design.R.attr |
Fields | |
---|---|
public
static
int |
backgroundTint
Background for the FloatingActionButton May be a reference to another resource, in the form
" |
public
static
int |
backgroundTintMode
May be a reference to another resource, in the form
" |
public
static
int |
behavior_hideable
Whether this bottom sheet can be hidden by dragging it further downwards May be a boolean value, such as " |
public
static
int |
behavior_overlapTop
The amount that the scrolling view should overlap the bottom of any AppBarLayout May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
behavior_peekHeight
The height of the bottom sheet when it is collapsed. |
public
static
int |
behavior_skipCollapsed
Skip the collapsed state once expanded; no effect unless it is hideable May be a boolean value, such as " |
public
static
int |
borderWidth
The width of the border around the FAB. |
public
static
int |
bottomSheetDialogTheme
Theme to use for modal bottom sheet dialogs spawned from this theme. |
public
static
int |
bottomSheetStyle
Style to use for modal bottom sheets in this theme. |
public
static
int |
collapsedTitleGravity
Specifies how the title should be positioned when collapsed. |
public
static
int |
collapsedTitleTextAppearance
The text appearance of the CollapsingToolbarLayouts title when it is fully 'collapsed' May be a reference to another resource, in the form
" |
public
static
int |
contentScrim
The drawable to use as a scrim on top of the CollapsingToolbarLayouts content when it has been scrolled sufficiently off screen. |
public
static
int |
counterEnabled
Whether the layout is laid out as if the character counter will be displayed May be a boolean value, such as " |
public
static
int |
counterMaxLength
The max length to display in the character counter May be an integer value, such as " |
public
static
int |
counterOverflowTextAppearance
TextAppearance of the character counter when the text is longer than the max May be a reference to another resource, in the form
" |
public
static
int |
counterTextAppearance
TextAppearance of the character counter May be a reference to another resource, in the form
" |
public
static
int |
elevation
Deprecated. |
public
static
int |
errorEnabled
Whether the layout is laid out as if an error will be displayed May be a boolean value, such as " |
public
static
int |
errorTextAppearance
TextAppearance of any error message displayed May be a reference to another resource, in the form
" |
public
static
int |
expanded
The initial expanded state for the AppBarLayout. |
public
static
int |
expandedTitleGravity
Specifies how the title should be positioned when expanded. |
public
static
int |
expandedTitleMargin
Specifies extra space on the start, top, end and bottom sides of the the expanded title text. |
public
static
int |
expandedTitleMarginBottom
Specifies extra space on the bottom side of the the expanded title text. |
public
static
int |
expandedTitleMarginEnd
Specifies extra space on the end side of the the expanded title text. |
public
static
int |
expandedTitleMarginStart
Specifies extra space on the start side of the the expanded title text. |
public
static
int |
expandedTitleMarginTop
Specifies extra space on the top side of the the expanded title text. |
public
static
int |
expandedTitleTextAppearance
The text appearance of the CollapsingToolbarLayout's title when it is fully 'expanded' May be a reference to another resource, in the form
" |
public
static
int |
fabSize
Size for the FAB. |
public
static
int |
foregroundInsidePadding
May be a boolean value, such as " |
public
static
int |
headerLayout
Layout resource to inflate as the header May be a reference to another resource, in the form
" |
public
static
int |
hintAnimationEnabled
Whether to animate hint state changes. |
public
static
int |
hintEnabled
Whether the layout's floating label functionality is enabled May be a boolean value, such as " |
public
static
int |
hintTextAppearance
May be a reference to another resource, in the form
" |
public
static
int |
insetForeground
May be a reference to another resource, in the form
" |
public
static
int |
itemBackground
May be a reference to another resource, in the form
" |
public
static
int |
itemIconTint
May be a color value, in the form of " |
public
static
int |
itemTextAppearance
May be a reference to another resource, in the form
" |
public
static
int |
itemTextColor
May be a color value, in the form of " |
public
static
int |
keylines
A reference to an array of integers representing the locations of horizontal keylines in dp from the starting edge. |
public
static
int |
layout_anchor
The id of an anchor view that this view should position relative to. |
public
static
int |
layout_anchorGravity
Specifies how an object should position relative to an anchor, on both the X and Y axes, within its parent's bounds. |
public
static
int |
layout_behavior
The class name of a Behavior class defining special runtime behavior for this child view. |
public
static
int |
layout_collapseMode
Must be one of the following constant values. |
public
static
int |
layout_collapseParallaxMultiplier
The multiplier used when layout_collapseMode is set to 'parallax'. |
public
static
int |
layout_keyline
The index of a keyline this view should position relative to. |
public
static
int |
layout_scrollFlags
Must be one or more (separated by '|') of the following constant values. |
public
static
int |
layout_scrollInterpolator
An interpolator to use when scrolling this View. |
public
static
int |
maxActionInlineWidth
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
menu
The menu resource to inflate and populate items from. |
public
static
int |
pressedTranslationZ
TranslationZ value for the FAB when pressed May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
rippleColor
Ripple color for the FAB. |
public
static
int |
scrimAnimationDuration
Specifies the duration used for scrim visibility animations. |
public
static
int |
scrimVisibleHeightTrigger
Specifies the amount of visible height in pixels used to define when to trigger a scrim visibility change. |
public
static
int |
state_collapsed
State value for |
public
static
int |
state_collapsible
State value for |
public
static
int |
statusBarBackground
Drawable to display behind the status bar when the view is set to draw behind it. |
public
static
int |
statusBarScrim
The drawable to use as a scrim for the status bar content when the CollapsingToolbarLayout has been scrolled sufficiently off screen. |
public
static
int |
tabBackground
Reference to a background to be applied to tabs. |
public
static
int |
tabContentStart
Position in the Y axis from the starting edge that tabs should be positioned from. |
public
static
int |
tabGravity
Gravity constant for tabs. |
public
static
int |
tabIndicatorColor
Color of the indicator used to show the currently selected tab. |
public
static
int |
tabIndicatorHeight
Height of the indicator used to show the currently selected tab. |
public
static
int |
tabMaxWidth
The maximum width for tabs. |
public
static
int |
tabMinWidth
The minimum width for tabs. |
public
static
int |
tabMode
The behavior mode for the Tabs in this layout Must be one of the following constant values. |
public
static
int |
tabPadding
The preferred padding along all edges of tabs. |
public
static
int |
tabPaddingBottom
The preferred padding along the bottom edge of tabs. |
public
static
int |
tabPaddingEnd
The preferred padding along the end edge of tabs. |
public
static
int |
tabPaddingStart
The preferred padding along the start edge of tabs. |
public
static
int |
tabPaddingTop
The preferred padding along the top edge of tabs. |
public
static
int |
tabSelectedTextColor
The text color to be applied to the currently selected tab. |
public
static
int |
tabTextAppearance
A reference to a TextAppearance style to be applied to tabs. |
public
static
int |
tabTextColor
The default text color to be applied to tabs. |
public
static
int |
textColorError
Text color used to indicate an error has occurred. |
public
static
int |
title
The title to show when titleEnabled is set to true. |
public
static
int |
titleEnabled
Whether the CollapsingToolbarLayout should draw its own shrinking/growing title. |
public
static
int |
toolbarId
The id of the primary Toolbar child that you wish to use for the purpose of collapsing. |
public
static
int |
useCompatPadding
Enable compat padding. |
Public constructors | |
---|---|
R.attr()
|
Inherited methods | |
---|---|
From
class
java.lang.Object
|
int backgroundTint
Background for the FloatingActionButton
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
int backgroundTintMode
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
int behavior_hideable
Whether this bottom sheet can be hidden by dragging it further downwards
May be a boolean value, such as "true
" or
"false
".
int behavior_overlapTop
The amount that the scrolling view should overlap the bottom of any AppBarLayout
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int behavior_peekHeight
The height of the bottom sheet when it is collapsed.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int behavior_skipCollapsed
Skip the collapsed state once expanded; no effect unless it is hideable
May be a boolean value, such as "true
" or
"false
".
int borderWidth
The width of the border around the FAB.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int bottomSheetDialogTheme
Theme to use for modal bottom sheet dialogs spawned from this theme.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int bottomSheetStyle
Style to use for modal bottom sheets in this theme.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int collapsedTitleGravity
Specifies how the title should be positioned when collapsed.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
bottom | 50 | Push title to the bottom of its container, not changing its size. |
center | 11 | Place the title in the center of its container in both the vertical and horizontal axis, not changing its size. |
center_horizontal | 1 | Place title in the horizontal center of its container, not changing its size. |
center_vertical | 10 | Place title in the vertical center of its container, not changing its size. |
end | 800005 | Push title to the end of its container, not changing its size. |
fill_vertical | 70 | Grow the vertical size of the title if needed so it completely fills its container. |
left | 3 | Push title to the left of its container, not changing its size. |
right | 5 | Push title to the right of its container, not changing its size. |
start | 800003 | Push title to the beginning of its container, not changing its size. |
top | 30 | Push title to the top of its container, not changing its size. |
int collapsedTitleTextAppearance
The text appearance of the CollapsingToolbarLayouts title when it is fully 'collapsed'
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int contentScrim
The drawable to use as a scrim on top of the CollapsingToolbarLayouts content when it has been scrolled sufficiently off screen.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int counterEnabled
Whether the layout is laid out as if the character counter will be displayed
May be a boolean value, such as "true
" or
"false
".
int counterMaxLength
The max length to display in the character counter
May be an integer value, such as "100
".
int counterOverflowTextAppearance
TextAppearance of the character counter when the text is longer than the max
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int counterTextAppearance
TextAppearance of the character counter
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int elevation
Deprecated. Elevation is now controlled via a state list animator.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
int errorEnabled
Whether the layout is laid out as if an error will be displayed
May be a boolean value, such as "true
" or
"false
".
int errorTextAppearance
TextAppearance of any error message displayed
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int expanded
The initial expanded state for the AppBarLayout. This only takes effect when this view is a direct child of a CoordinatorLayout.
May be a boolean value, such as "true
" or
"false
".
int expandedTitleGravity
Specifies how the title should be positioned when expanded.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
bottom | 50 | Push title to the bottom of its container, not changing its size. |
center | 11 | Place the title in the center of its container in both the vertical and horizontal axis, not changing its size. |
center_horizontal | 1 | Place title in the horizontal center of its container, not changing its size. |
center_vertical | 10 | Place title in the vertical center of its container, not changing its size. |
end | 800005 | Push title to the end of its container, not changing its size. |
fill_vertical | 70 | Grow the vertical size of the title if needed so it completely fills its container. |
left | 3 | Push title to the left of its container, not changing its size. |
right | 5 | Push title to the right of its container, not changing its size. |
start | 800003 | Push title to the beginning of its container, not changing its size. |
top | 30 | Push title to the top of its container, not changing its size. |
int expandedTitleMargin
Specifies extra space on the start, top, end and bottom sides of the the expanded title text. Margin values should be positive.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int expandedTitleMarginBottom
Specifies extra space on the bottom side of the the expanded title text. Margin values should be positive.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int expandedTitleMarginEnd
Specifies extra space on the end side of the the expanded title text. Margin values should be positive.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int expandedTitleMarginStart
Specifies extra space on the start side of the the expanded title text. Margin values should be positive.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int expandedTitleMarginTop
Specifies extra space on the top side of the the expanded title text. Margin values should be positive.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int expandedTitleTextAppearance
The text appearance of the CollapsingToolbarLayout's title when it is fully 'expanded'
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int fabSize
Size for the FAB.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
auto | ffffffff | A size which will change based on the window size. |
mini | 1 | The mini sized button. |
normal | 0 | The normal sized button. |
int foregroundInsidePadding
May be a boolean value, such as "true
" or
"false
".
int headerLayout
Layout resource to inflate as the header
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int hintAnimationEnabled
Whether to animate hint state changes.
May be a boolean value, such as "true
" or
"false
".
int hintEnabled
Whether the layout's floating label functionality is enabled
May be a boolean value, such as "true
" or
"false
".
int hintTextAppearance
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int insetForeground
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int itemBackground
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int itemIconTint
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int itemTextAppearance
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int itemTextColor
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int keylines
A reference to an array of integers representing the locations of horizontal keylines in dp from the starting edge. Child views can refer to these keylines for alignment using layout_keyline="index" where index is a 0-based index into this array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int layout_anchor
The id of an anchor view that this view should position relative to.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int layout_anchorGravity
Specifies how an object should position relative to an anchor, on both the X and Y axes, within its parent's bounds.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
bottom | 50 | Push object to the bottom of its container, not changing its size. |
center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges. |
clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
end | 800005 | Push object to the end of its container, not changing its size. |
fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
left | 3 | Push object to the left of its container, not changing its size. |
right | 5 | Push object to the right of its container, not changing its size. |
start | 800003 | Push object to the beginning of its container, not changing its size. |
top | 30 | Push object to the top of its container, not changing its size. |
int layout_behavior
The class name of a Behavior class defining special runtime behavior for this child view.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int layout_collapseMode
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0 | The view will act as normal with no collapsing behavior. |
parallax | 2 | The view will scroll in a parallax fashion. See the layout_collapseParallaxMultiplier attribute to change the multiplier. |
pin | 1 | The view will pin in place. |
int layout_collapseParallaxMultiplier
The multiplier used when layout_collapseMode is set to 'parallax'. The value should be between 0.0 and 1.0.
May be a floating point value, such as "1.2
".
int layout_keyline
The index of a keyline this view should position relative to. android:layout_gravity will affect how the view aligns to the specified keyline.
May be an integer value, such as "100
".
int layout_scrollFlags
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
enterAlways | 4 | When entering (scrolling on screen) the view will scroll on any downwards scroll event, regardless of whether the scrolling view is also scrolling. This is commonly referred to as the 'quick return' pattern. |
enterAlwaysCollapsed | 8 | An additional flag for 'enterAlways' which modifies the returning view to only initially scroll back to it's collapsed height. Once the scrolling view has reached the end of it's scroll range, the remainder of this view will be scrolled into view. |
exitUntilCollapsed | 2 | When exiting (scrolling off screen) the view will be scrolled until it is 'collapsed'. The collapsed height is defined by the view's minimum height. |
scroll | 1 | The view will be scroll in direct relation to scroll events. This flag needs to be set for any of the other flags to take effect. If any sibling views before this one do not have this flag, then this value has no effect. |
snap | 10 | Upon a scroll ending, if the view is only partially visible then it will be snapped and scrolled to it's closest edge. |
int layout_scrollInterpolator
An interpolator to use when scrolling this View. Only takes effect when View is scrollable.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int maxActionInlineWidth
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int menu
The menu resource to inflate and populate items from.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int pressedTranslationZ
TranslationZ value for the FAB when pressed
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int rippleColor
Ripple color for the FAB.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int scrimAnimationDuration
Specifies the duration used for scrim visibility animations.
May be an integer value, such as "100
".
int scrimVisibleHeightTrigger
Specifies the amount of visible height in pixels used to define when to trigger a scrim visibility change.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int state_collapsed
State value for AppBarLayout
set when the view
has been collapsed.
May be a boolean value, such as "true
" or
"false
".
int state_collapsible
State value for AppBarLayout
set when the view
has children which are capable of being collapsed.
May be a boolean value, such as "true
" or
"false
".
int statusBarBackground
Drawable to display behind the status bar when the view is set to draw behind it.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int statusBarScrim
The drawable to use as a scrim for the status bar content when the CollapsingToolbarLayout has been scrolled sufficiently off screen. Only works on Lollipop with the correct setup.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int tabBackground
Reference to a background to be applied to tabs.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int tabContentStart
Position in the Y axis from the starting edge that tabs should be positioned from.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int tabGravity
Gravity constant for tabs.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
center | 1 | |
fill | 0 |
int tabIndicatorColor
Color of the indicator used to show the currently selected tab.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int tabIndicatorHeight
Height of the indicator used to show the currently selected tab.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int tabMaxWidth
The maximum width for tabs.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int tabMinWidth
The minimum width for tabs.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int tabMode
The behavior mode for the Tabs in this layout
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
fixed | 1 | |
scrollable | 0 |
int tabPadding
The preferred padding along all edges of tabs.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int tabPaddingBottom
The preferred padding along the bottom edge of tabs.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int tabPaddingEnd
The preferred padding along the end edge of tabs.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int tabPaddingStart
The preferred padding along the start edge of tabs.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int tabPaddingTop
The preferred padding along the top edge of tabs.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int tabSelectedTextColor
The text color to be applied to the currently selected tab.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int tabTextAppearance
A reference to a TextAppearance style to be applied to tabs.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int tabTextColor
The default text color to be applied to tabs.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int textColorError
Text color used to indicate an error has occurred.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int title
The title to show when titleEnabled is set to true.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
int titleEnabled
Whether the CollapsingToolbarLayout should draw its own shrinking/growing title.
May be a boolean value, such as "true
" or
"false
".
int toolbarId
The id of the primary Toolbar child that you wish to use for the purpose of collapsing. This Toolbar descendant view does not need to be a direct child of the layout. If you do not set this, the first direct Toolbar child found will be used.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int useCompatPadding
Enable compat padding.
May be a boolean value, such as "true
" or
"false
".
R.attr ()