Most visited

Recently visited

R.attr

public static final class R.attr
extends Object

java.lang.Object
   ↳ android.support.design.R.attr


Summary

Fields

public static 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".

public static 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".

public static 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".

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 "14.5sp".

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 "true" or "false".

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 "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

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 "true" or "false".

public static int counterMaxLength

The max length to display in the character counter

May be an integer value, such as "100".

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 "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

public static 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".

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 "true" or "false".

public static 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".

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 "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

public static int fabSize

Size for the FAB.

public static int foregroundInsidePadding

May be a boolean value, such as "true" or "false".

public static 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".

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 "true" or "false".

public static 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".

public static 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".

public static 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".

public static int itemIconTint

May be a color value, in the form of "#rgb", "#argb", "#rrggbb#aarrggbb".

public static 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".

public static int itemTextColor

May be a color value, in the form of "#rgb", "#argb", "#rrggbb#aarrggbb".

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 "14.5sp".

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 "14.5sp".

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 AppBarLayout set when the view has been collapsed.

public static int state_collapsible

State value for AppBarLayout set when the view has children which are capable of being collapsed.

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

Fields

backgroundTint

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.

backgroundTintMode

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.

behavior_hideable

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".

behavior_overlapTop

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).

behavior_peekHeight

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).

behavior_skipCollapsed

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".

borderWidth

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).

bottomSheetDialogTheme

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".

bottomSheetStyle

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".

collapsedTitleGravity

int collapsedTitleGravity

Specifies how the title should be positioned when collapsed.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
bottom50Push title to the bottom of its container, not changing its size.
center11Place the title in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place title in the horizontal center of its container, not changing its size.
center_vertical10Place title in the vertical center of its container, not changing its size.
end800005Push title to the end of its container, not changing its size.
fill_vertical70Grow the vertical size of the title if needed so it completely fills its container.
left3Push title to the left of its container, not changing its size.
right5Push title to the right of its container, not changing its size.
start800003Push title to the beginning of its container, not changing its size.
top30Push title to the top of its container, not changing its size.

collapsedTitleTextAppearance

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".

contentScrim

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".

counterEnabled

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".

counterMaxLength

int counterMaxLength

The max length to display in the character counter

May be an integer value, such as "100".

counterOverflowTextAppearance

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".

counterTextAppearance

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".

elevation

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.

errorEnabled

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".

errorTextAppearance

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".

expanded

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".

expandedTitleGravity

int expandedTitleGravity

Specifies how the title should be positioned when expanded.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
bottom50Push title to the bottom of its container, not changing its size.
center11Place the title in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place title in the horizontal center of its container, not changing its size.
center_vertical10Place title in the vertical center of its container, not changing its size.
end800005Push title to the end of its container, not changing its size.
fill_vertical70Grow the vertical size of the title if needed so it completely fills its container.
left3Push title to the left of its container, not changing its size.
right5Push title to the right of its container, not changing its size.
start800003Push title to the beginning of its container, not changing its size.
top30Push title to the top of its container, not changing its size.

expandedTitleMargin

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).

expandedTitleMarginBottom

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).

expandedTitleMarginEnd

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).

expandedTitleMarginStart

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).

expandedTitleMarginTop

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).

expandedTitleTextAppearance

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".

fabSize

int fabSize

Size for the FAB.

Must be one of the following constant values.

ConstantValueDescription
autoffffffffA size which will change based on the window size.
mini1The mini sized button.
normal0The normal sized button.

foregroundInsidePadding

int foregroundInsidePadding

May be a boolean value, such as "true" or "false".

headerLayout

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".

hintAnimationEnabled

int hintAnimationEnabled

Whether to animate hint state changes.

May be a boolean value, such as "true" or "false".

hintEnabled

int hintEnabled

Whether the layout's floating label functionality is enabled

May be a boolean value, such as "true" or "false".

hintTextAppearance

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".

insetForeground

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".

itemBackground

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".

itemIconTint

int itemIconTint

May be a color value, in the form of "#rgb", "#argb", "#rrggbb#aarrggbb".

itemTextAppearance

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".

itemTextColor

int itemTextColor

May be a color value, in the form of "#rgb", "#argb", "#rrggbb#aarrggbb".

keylines

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".

layout_anchor

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".

layout_anchorGravity

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.

ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.

layout_behavior

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;

layout_collapseMode

int layout_collapseMode

Must be one of the following constant values.

ConstantValueDescription
none0The view will act as normal with no collapsing behavior.
parallax2The view will scroll in a parallax fashion. See the layout_collapseParallaxMultiplier attribute to change the multiplier.
pin1The view will pin in place.

layout_collapseParallaxMultiplier

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".

layout_keyline

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".

layout_scrollFlags

int layout_scrollFlags

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
enterAlways4When 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.
enterAlwaysCollapsed8An 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.
exitUntilCollapsed2When exiting (scrolling off screen) the view will be scrolled until it is 'collapsed'. The collapsed height is defined by the view's minimum height.
scroll1The 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.
snap10Upon a scroll ending, if the view is only partially visible then it will be snapped and scrolled to it's closest edge.

layout_scrollInterpolator

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".

maxActionInlineWidth

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).

menu

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".

pressedTranslationZ

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).

rippleColor

int rippleColor

Ripple color for the FAB.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb#aarrggbb".

scrimAnimationDuration

int scrimAnimationDuration

Specifies the duration used for scrim visibility animations.

May be an integer value, such as "100".

scrimVisibleHeightTrigger

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).

state_collapsed

int state_collapsed

State value for AppBarLayout set when the view has been collapsed.

May be a boolean value, such as "true" or "false".

state_collapsible

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".

statusBarBackground

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".

statusBarScrim

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".

tabBackground

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".

tabContentStart

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).

tabGravity

int tabGravity

Gravity constant for tabs.

Must be one of the following constant values.

ConstantValueDescription
center1
fill0

tabIndicatorColor

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".

tabIndicatorHeight

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).

tabMaxWidth

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).

tabMinWidth

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).

tabMode

int tabMode

The behavior mode for the Tabs in this layout

Must be one of the following constant values.

ConstantValueDescription
fixed1
scrollable0

tabPadding

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).

tabPaddingBottom

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).

tabPaddingEnd

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).

tabPaddingStart

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).

tabPaddingTop

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).

tabSelectedTextColor

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".

tabTextAppearance

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".

tabTextColor

int tabTextColor

The default text color to be applied to tabs.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb#aarrggbb".

textColorError

int textColorError

Text color used to indicate an error has occurred.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb#aarrggbb".

title

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.

titleEnabled

int titleEnabled

Whether the CollapsingToolbarLayout should draw its own shrinking/growing title.

May be a boolean value, such as "true" or "false".

toolbarId

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".

useCompatPadding

int useCompatPadding

Enable compat padding.

May be a boolean value, such as "true" or "false".

Public constructors

R.attr

R.attr ()

Hooray!