java.lang.Object | |
↳ | android.support.v17.leanback.R.attr |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
activatedAnimationDuration | Defines the duration in milliseconds of the activated animation for a card layout. | ||||||||||
baseCardViewStyle |
CardView styles
Must be a reference to another resource, in the form " |
||||||||||
browsePaddingBottom |
bottom padding of BrowseFragment
Must be a dimension value, which is a floating point number appended with a unit such as " |
||||||||||
browsePaddingLeft |
left padding of BrowseFragment, RowsFragment, DetailsFragment
Must be a dimension value, which is a floating point number appended with a unit such as " |
||||||||||
browsePaddingRight |
right padding of BrowseFragment, RowsFragment, DetailsFragment
Must be a dimension value, which is a floating point number appended with a unit such as " |
||||||||||
browsePaddingTop |
top padding of BrowseFragment
Must be a dimension value, which is a floating point number appended with a unit such as " |
||||||||||
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 " |
||||||||||
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 " |
||||||||||
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 " |
||||||||||
browseTitleIconStyle |
BrowseFragment Title icon style
Must be a reference to another resource, in the form " |
||||||||||
browseTitleTextStyle |
BrowseFragment Title text style
Must be a reference to another resource, in the form " |
||||||||||
browseTitleViewStyle |
BrowseFragment TitleView style
Must be a reference to another resource, in the form " |
||||||||||
cardType |
Defines the type of the card layout
Must be one of the following constant values. |
||||||||||
closed_captioning |
Must be a reference to another resource, in the form " |
||||||||||
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 " |
||||||||||
defaultBrandColor | Default brand color used for the background of certain leanback visual elements such as the headers fragment. | ||||||||||
defaultSearchBrightColor | Default color that search orb pulses to. | ||||||||||
defaultSearchColor |
Default colors
May be a reference to another resource, in the form " |
||||||||||
defaultSearchIcon |
Must be a reference to another resource, in the form " |
||||||||||
detailsActionButtonStyle |
Must be a reference to another resource, in the form " |
||||||||||
detailsDescriptionBodyStyle |
Must be a reference to another resource, in the form " |
||||||||||
detailsDescriptionSubtitleStyle |
Must be a reference to another resource, in the form " |
||||||||||
detailsDescriptionTitleStyle |
for details overviews
Must be a reference to another resource, in the form " |
||||||||||
errorMessageStyle |
for messages in the error fragment
Must be a reference to another resource, in the form " |
||||||||||
extraVisibility | Defines when the extra region of a card layout is displayed. | ||||||||||
fast_forward |
Must be a reference to another resource, in the form " |
||||||||||
focusOutEnd |
Allow DPAD key to navigate out at the end of the view, default is false
Must be a boolean value, either " |
||||||||||
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 " |
||||||||||
headerStyle |
header style inside HeadersFragment
Must be a reference to another resource, in the form " |
||||||||||
headersVerticalGridStyle |
vertical grid style inside HeadersFragment
Must be a reference to another resource, in the form " |
||||||||||
high_quality |
Must be a reference to another resource, in the form " |
||||||||||
horizontalMargin |
Defining margin between two items horizontally
Must be a dimension value, which is a floating point number appended with a unit such as " |
||||||||||
imageCardViewStyle |
Must be a reference to another resource, in the form " |
||||||||||
infoAreaBackground |
May be a reference to another resource, in the form " |
||||||||||
infoVisibility | Defines when the info region of a card layout is displayed. | ||||||||||
itemsVerticalGridStyle |
style for a vertical grid of items
Must be a reference to another resource, in the form " |
||||||||||
layout_viewType | The card layout region defined by this element. | ||||||||||
numberOfColumns |
Defining number of columns
Must be an integer value, such as " |
||||||||||
numberOfRows |
Defining number of rows
Must be an integer value, such as " |
||||||||||
overlayDimActiveLevel | Default level of dimming for active views. | ||||||||||
overlayDimDimmedLevel | Default level of dimming for dimmed views. | ||||||||||
overlayDimMaskColor | Default color for dimmed views. | ||||||||||
pause |
Must be a reference to another resource, in the form " |
||||||||||
play |
Must be a reference to another resource, in the form " |
||||||||||
playbackControlsActionIcons |
Must be a reference to another resource, in the form " |
||||||||||
playbackControlsButtonStyle |
for playback controls
Must be a reference to another resource, in the form " |
||||||||||
playbackControlsIconHighlightColor |
May be a reference to another resource, in the form " |
||||||||||
playbackControlsTimeStyle |
Must be a reference to another resource, in the form " |
||||||||||
playbackProgressPrimaryColor |
May be a reference to another resource, in the form " |
||||||||||
repeat |
Must be a reference to another resource, in the form " |
||||||||||
repeat_one |
Must be a reference to another resource, in the form " |
||||||||||
rewind |
Must be a reference to another resource, in the form " |
||||||||||
rowHeaderStyle |
header style inside a row
Must be a reference to another resource, in the form " |
||||||||||
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 " |
||||||||||
rowHorizontalGridStyle |
horizontal grid style inside a row
Must be a reference to another resource, in the form " |
||||||||||
rowHoverCardDescriptionStyle |
hover card description style
Must be a reference to another resource, in the form " |
||||||||||
rowHoverCardTitleStyle |
hover card title style
Must be a reference to another resource, in the form " |
||||||||||
rowsVerticalGridStyle |
vertical grid style inside RowsFragment
Must be a reference to another resource, in the form " |
||||||||||
searchOrbBrightColor |
Defining pulse color of the search affordance
May be a reference to another resource, in the form " |
||||||||||
searchOrbColor |
Defining color of the search affordance
May be a reference to another resource, in the form " |
||||||||||
searchOrbIcon |
Defining icon of the search affordance
Must be a reference to another resource, in the form " |
||||||||||
searchOrbIconColor |
Defining icon tint color of the search affordance
May be a reference to another resource, in the form " |
||||||||||
searchOrbViewStyle |
Style for searchOrb
Must be a reference to another resource, in the form " |
||||||||||
selectedAnimationDelay | Defines the delay in milliseconds before the selection animation runs for a card layout. | ||||||||||
selectedAnimationDuration | Defines the duration in milliseconds of the selection animation for a card layout. | ||||||||||
shuffle |
Must be a reference to another resource, in the form " |
||||||||||
skip_next |
Must be a reference to another resource, in the form " |
||||||||||
skip_previous |
Must be a reference to another resource, in the form " |
||||||||||
thumb_down |
Must be a reference to another resource, in the form " |
||||||||||
thumb_down_outline |
Must be a reference to another resource, in the form " |
||||||||||
thumb_up |
Must be a reference to another resource, in the form " |
||||||||||
thumb_up_outline |
Must be a reference to another resource, in the form " |
||||||||||
verticalMargin |
Defining margin between two items vertically
Must be a dimension value, which is a floating point number appended with a unit such as " |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
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.
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
".
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.
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.
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.
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.
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.
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.
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.
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
".
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
".
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
".
Defines the type of the card layout
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
mainOnly | 0 | A simple card layout with a single layout region. |
infoOver | 1 | 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. |
infoUnder | 2 | A card layout with two layout regions: a main area which is always visible, and an info region that appears below the main region. |
infoUnderWithExtra | 3 | 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. |
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
Constant | Value | Description |
---|---|---|
wrap_content | -2 |
Default brand color used for the background of certain leanback visual elements such as the headers fragment. If your app runs on: a) SDK 21+: set colorPrimary, used by the leanback launcher and elsewhere, and defaultBrandColor will inherit it. b) SDK < 21: set the brand color explicitly via defaultBrandColor, or programatically.
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
".
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
".
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
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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
".
for messages in the error fragment
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
Constant | Value | Description |
---|---|---|
always | 0 | Always display the extra region. |
activated | 1 | Display the extra region only when activated. |
selected | 2 | Display the extra region only when selected. |
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
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.
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
".
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
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
Must 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 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
".
Defines when the info region of a card layout is displayed.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
always | 0 | Always display the info region. |
activated | 1 | Display the info region only when activated. |
selected | 2 | Display the info region only when selected. |
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
".
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.
Constant | Value | Description |
---|---|---|
main | 0 | The main region of the card. |
info | 1 | The info region of the card. |
extra | 2 | The extra region of the card. |
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.
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.
Default level of dimming for active views.
Must 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.
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.
Default level of dimming for dimmed views.
Must 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.
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.
Default color for dimmed views.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
for playback controls
Must 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 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
".
Must 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 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
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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
".
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.
Constant | Value | Description |
---|---|---|
wrap_content | -2 |
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
".
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
".
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
".
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
".
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
".
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
".
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
".
Defining icon tint 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
".
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
".
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.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.