Android APIs
public static final class

R.attr

extends Object
java.lang.Object
   ↳ android.support.v17.leanback.R.attr

Summary

Fields
public static int activatedAnimationDuration Defines the duration in milliseconds of the activated animation for a card layout.
public static int baseCardViewStyle CardView styles

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int browsePaddingBottom bottom padding of BrowseFragment

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int browsePaddingLeft left padding of BrowseFragment, RowsFragment, DetailsFragment

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int browsePaddingRight right padding of BrowseFragment, RowsFragment, DetailsFragment

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int browsePaddingTop top padding of BrowseFragment

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int browseRowsFadingEdgeLength fading edge length of start of browse row when HeadersFragment is visible

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int browseRowsMarginStart start margin of RowsFragment inside BrowseFragment when HeadersFragment is visible

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int browseRowsMarginTop top margin of RowsFragment inside BrowseFragment when BrowseFragment title is visible

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int browseTitleIconStyle BrowseFragment Title icon style

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int browseTitleTextStyle BrowseFragment Title text style

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int browseTitleViewStyle BrowseFragment TitleView style

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int cardType Defines the type of the card layout

Must be one of the following constant values.

public static int columnWidth Defining width of each column of VerticalGridView

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int defaultBrandColor Default colors

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int defaultSearchBrightColor Default color that search orb pulses to.
public static int defaultSearchColor

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int defaultSearchIcon

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int detailsActionButtonStyle

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int detailsDescriptionBodyStyle

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int detailsDescriptionSubtitleStyle

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int detailsDescriptionTitleStyle for details overviews

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int extraVisibility Defines when the extra region of a card layout is displayed.
public static int focusOutEnd Allow DPAD key to navigate out at the end of the view, default is false

Must be a boolean value, either "true" or "false".

public static int focusOutFront Allow DPAD key to navigate out at the front of the View (where position = 0), default is false

Must be a boolean value, either "true" or "false".

public static int headerStyle header style inside HeadersFragment

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int headersVerticalGridStyle vertical grid style inside HeadersFragment

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int horizontalMargin Defining margin between two items horizontally

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int imageCardViewStyle

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int infoVisibility Defines when the info region of a card layout is displayed.
public static int itemsVerticalGridStyle style for a vertical grid of items

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int layout_viewType The card layout region defined by this element.
public static int numberOfColumns Defining number of columns

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

public static int numberOfRows Defining number of rows

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

public static int rowHeaderStyle header style inside a row

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int rowHeight Defining height of each row of HorizontalGridView

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int rowHorizontalGridStyle horizontal grid style inside a row

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int rowHoverCardDescriptionStyle hover card description style

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int rowHoverCardTitleStyle hover card title style

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int rowsVerticalGridStyle vertical grid style inside RowsFragment

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int searchAffordanceColor Defining color of the search affordance

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int searchOrbBrightColor Defining pulse color of the search affordance

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int searchOrbColor Defining color of the search affordance

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int searchOrbIcon Defining icon of the search affordance

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int searchOrbViewStyle Style for searchOrb

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int selectedAnimationDelay Defines the delay in milliseconds before the selection animation runs for a card layout.
public static int selectedAnimationDuration Defines the duration in milliseconds of the selection animation for a card layout.
public static int verticalMargin Defining margin between two items vertically

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

Public Constructors
R.attr()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static int activatedAnimationDuration

Defines the duration in milliseconds of the activated animation for a card layout.

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

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int baseCardViewStyle

CardView styles

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int browsePaddingBottom

bottom padding of BrowseFragment

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int browsePaddingLeft

left padding of BrowseFragment, RowsFragment, DetailsFragment

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int browsePaddingRight

right padding of BrowseFragment, RowsFragment, DetailsFragment

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int browsePaddingTop

top padding of BrowseFragment

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int browseRowsFadingEdgeLength

fading edge length of start of browse row when HeadersFragment is visible

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int browseRowsMarginStart

start margin of RowsFragment inside BrowseFragment when HeadersFragment is visible

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int browseRowsMarginTop

top margin of RowsFragment inside BrowseFragment when BrowseFragment title is visible

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int browseTitleIconStyle

BrowseFragment Title icon style

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int browseTitleTextStyle

BrowseFragment Title text style

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int browseTitleViewStyle

BrowseFragment TitleView style

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int cardType

Defines the type of the card layout

Must be one of the following constant values.

ConstantValueDescription
mainOnly0 A simple card layout with a single layout region.
infoOver1 A card layout with two layout regions: a main area which is always visible, and an info region that appears over the lower area of the main region.
infoUnder2 A card layout with two layout regions: a main area which is always visible, and an info region that appears below the main region.
infoUnderWithExtra3 A card layout with three layout regions: a main area which is always visible, an info region that appears below the main region, and an extra region that appears below the info region after a small delay.

public static int columnWidth

Defining width of each column of VerticalGridView

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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

May be one of the following constant values.

ConstantValueDescription
wrap_content-2

public static int defaultBrandColor

Default colors

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

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

public static int defaultSearchBrightColor

Default color that search orb pulses to. If not set, this color is determined programatically based on the defaultSearchColor

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

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

public static int defaultSearchColor

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

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

public static int defaultSearchIcon

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int detailsActionButtonStyle

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int detailsDescriptionBodyStyle

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int detailsDescriptionSubtitleStyle

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int detailsDescriptionTitleStyle

for details overviews

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int extraVisibility

Defines when the extra region of a card layout is displayed. Depends on infoVisibility, meaning the extra region never displays if the info region is not displayed as well.

Must be one of the following constant values.

ConstantValueDescription
always0 Always display the extra region.
activated1 Display the extra region only when activated.
selected2 Display the extra region only when selected.

public static int focusOutEnd

Allow DPAD key to navigate out at the end of the view, default is false

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int focusOutFront

Allow DPAD key to navigate out at the front of the View (where position = 0), default is false

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int headerStyle

header style inside HeadersFragment

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int headersVerticalGridStyle

vertical grid style inside HeadersFragment

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int horizontalMargin

Defining margin between two items horizontally

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int imageCardViewStyle

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int infoVisibility

Defines when the info region of a card layout is displayed.

Must be one of the following constant values.

ConstantValueDescription
always0 Always display the info region.
activated1 Display the info region only when activated.
selected2 Display the info region only when selected.

public static int itemsVerticalGridStyle

style for a vertical grid of items

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int layout_viewType

The card layout region defined by this element. At most one of element of each type should be specified as an immediate child of the card layout.

Must be one of the following constant values.

ConstantValueDescription
main0 The main region of the card.
info1 The info region of the card.
extra2 The extra region of the card.

public static int numberOfColumns

Defining number of columns

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

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int numberOfRows

Defining number of rows

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

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int rowHeaderStyle

header style inside a row

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int rowHeight

Defining height of each row of HorizontalGridView

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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

May be one of the following constant values.

ConstantValueDescription
wrap_content-2

public static int rowHorizontalGridStyle

horizontal grid style inside a row

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int rowHoverCardDescriptionStyle

hover card description style

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int rowHoverCardTitleStyle

hover card title style

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int rowsVerticalGridStyle

vertical grid style inside RowsFragment

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int searchAffordanceColor

Defining color of the search affordance

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

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

public static int searchOrbBrightColor

Defining pulse color of the search affordance

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

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

public static int searchOrbColor

Defining color of the search affordance

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

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

public static int searchOrbIcon

Defining icon of the search affordance

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int searchOrbViewStyle

Style for searchOrb

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

public static int selectedAnimationDelay

Defines the delay in milliseconds before the selection animation runs for a card layout.

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

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int selectedAnimationDuration

Defines the duration in milliseconds of the selection animation for a card layout.

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

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int verticalMargin

Defining margin between two items vertically

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

Public Constructors

public R.attr ()