R.attr | Android Developers

Summary: Fields | Ctors | Inherited Methods | [Expand All]

# R.attr

`public static final class R.attr`
`extends Object` ``

java.lang.Object
↳ | android.support.wearable.R.attr

## Summary

### Fields
`public static int` | `buttonRippleColor` 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` | `circle_border_color` Must be a color value, in the form of "`#rgb`", "`#argb`", "`#rrggbb`", or "`#aarrggbb`".
`public static int` | `circle_border_width` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `circle_color` Must be a color value, in the form of "`#rgb`", "`#argb`", "`#rrggbb`", or "`#aarrggbb`".
`public static int` | `circle_padding` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `circle_radius` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `circle_radius_percent` Must be a fractional value, which is a floating point number appended with either % or %p, such as "`14.5%`".
`public static int` | `circle_radius_pressed` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `circle_radius_pressed_percent` Must be a fractional value, which is a floating point number appended with either % or %p, such as "`14.5%`".
`public static int` | `circular_layout_gravity` Must be one or more (separated by '|') of the following constant values.
`public static int` | `circular_text_size` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `color_sequence` 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` | `dotColor` Must be a color value, in the form of "`#rgb`", "`#argb`", "`#rrggbb`", or "`#aarrggbb`".
`public static int` | `dotColorSelected` Must be a color value, in the form of "`#rgb`", "`#argb`", "`#rrggbb`", or "`#aarrggbb`".
`public static int` | `dotFadeInDuration` Must be an integer value, such as "`100`".
`public static int` | `dotFadeOutDelay` Must be an integer value, such as "`100`".
`public static int` | `dotFadeOutDuration` Must be an integer value, such as "`100`".
`public static int` | `dotFadeWhenIdle` Must be a boolean value, either "`true`" or "`false`".
`public static int` | `dotRadius` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `dotRadiusSelected` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `dotShadowColor` Must be a color value, in the form of "`#rgb`", "`#argb`", "`#rrggbb`", or "`#aarrggbb`".
`public static int` | `dotShadowDx` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `dotShadowDy` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `dotShadowRadius` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `dotSpacing` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `imageScaleMode` Must be one of the following constant values.
`public static int` | `image_circle_percentage` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `image_horizontal_offcenter_percentage` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `image_tint` Must be a color value, in the form of "`#rgb`", "`#argb`", "`#rrggbb`", or "`#aarrggbb`".
`public static int` | `layoutManager` Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
`public static int` | `layout_box` Must be one or more (separated by '|') of the following constant values.
`public static int` | `layout_gravityRound` Must be one or more (separated by '|') of the following constant values.
`public static int` | `layout_heightRound` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `layout_marginBottomRound` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `layout_marginLeftRound` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `layout_marginRightRound` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `layout_marginRound` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `layout_marginTopRound` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `layout_widthRound` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `maxTextSize` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `minTextSize` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `pressedButtonTranslationZ` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `rectLayout` 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` | `reverseLayout` Must be a boolean value, either "`true`" or "`false`".
`public static int` | `roundLayout` 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` | `shadow_width` Must be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
`public static int` | `spanCount` Must be an integer value, such as "`100`".
`public static int` | `square_dimen` Must be one of the following constant values.
`public static int` | `stackFromEnd` Must be a boolean value, either "`true`" or "`false`".
`public static int` | `update_interval` Must be an integer value, such as "`100`".

### Public constructors
`R.attr()`

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()`
`boolean` | `equals(Object arg0)`
`void` | `finalize()`
`final Class<?>` | `getClass()`
`int` | `hashCode()`
`final void` | `notify()`
`final void` | `notifyAll()`
`String` | `toString()`
`final void` | `wait()`
`final void` | `wait(long arg0, int arg1)`
`final void` | `wait(long arg0)`

## Fields

### buttonRippleColor

    int buttonRippleColor

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

### circle_border_color

    int circle_border_color

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.

### circle_border_width

    int circle_border_width

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.

### circle_color

    int circle_color

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.

### circle_padding

    int circle_padding

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.

### circle_radius

    int circle_radius

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.

### circle_radius_percent

    int circle_radius_percent

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.

### circle_radius_pressed

    int circle_radius_pressed

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.

### circle_radius_pressed_percent

    int circle_radius_pressed_percent

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.

### circular_layout_gravity

    int circular_layout_gravity

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

Constant | Value | Description
--- | --- | ---
`left` | 0x03 |
`top` | 0x30 |
`right` | 0x05 |
`bottom` | 0x50 |
`center_vertical` | 0x10 |
`center_horizontal` | 0x01 |
`center` | 0x11 |

### circular_text_size

    int circular_text_size

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.

### color_sequence

    int color_sequence

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

### dotColor

    int dotColor

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.

### dotColorSelected

    int dotColorSelected

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.

### dotFadeInDuration

    int dotFadeInDuration

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.

### dotFadeOutDelay

    int dotFadeOutDelay

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.

### dotFadeOutDuration

    int dotFadeOutDuration

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.

### dotFadeWhenIdle

    int dotFadeWhenIdle

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.

### dotRadius

    int dotRadius

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.

### dotRadiusSelected

    int dotRadiusSelected

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.

### dotShadowColor

    int dotShadowColor

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.

### dotShadowDx

    int dotShadowDx

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.

### dotShadowDy

    int dotShadowDy

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.

### dotShadowRadius

    int dotShadowRadius

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.

### dotSpacing

    int dotSpacing

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.

### imageScaleMode

    int imageScaleMode

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`fit` | 0 |
`center` | 1 |

### image_circle_percentage

    int image_circle_percentage

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.

### image_horizontal_offcenter_percentage

    int image_horizontal_offcenter_percentage

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.

### image_tint

    int image_tint

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.

### layoutManager

    int layoutManager

Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

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.

### layout_box

    int layout_box

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

Constant | Value | Description
--- | --- | ---
`left` | 0x01 |
`top` | 0x02 |
`right` | 0x04 |
`bottom` | 0x08 |
`all` | 0x0F |

### layout_gravityRound

    int layout_gravityRound

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

Constant | Value | Description
--- | --- | ---
`top` | 0x30 |
`bottom` | 0x50 |
`left` | 0x03 |
`right` | 0x05 |
`center_vertical` | 0x10 |
`fill_vertical` | 0x70 |
`center_horizontal` | 0x01 |
`fill_horizontal` | 0x07 |
`center` | 0x11 |
`fill` | 0x77 |
`clip_vertical` | 0x80 |
`clip_horizontal` | 0x08 |
`start` | 0x00800003 |
`end` | 0x00800005 |

### layout_heightRound

    int layout_heightRound

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.

### layout_marginBottomRound

    int layout_marginBottomRound

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.

### layout_marginLeftRound

    int layout_marginLeftRound

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.

### layout_marginRightRound

    int layout_marginRightRound

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.

### layout_marginRound

    int layout_marginRound

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.

### layout_marginTopRound

    int layout_marginTopRound

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.

### layout_widthRound

    int layout_widthRound

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.

### maxTextSize

    int maxTextSize

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.

### minTextSize

    int minTextSize

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.

### pressedButtonTranslationZ

    int pressedButtonTranslationZ

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.

### rectLayout

    int rectLayout

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

### reverseLayout

    int reverseLayout

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.

### roundLayout

    int roundLayout

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

### shadow_width

    int shadow_width

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.

### spanCount

    int spanCount

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.

### square_dimen

    int square_dimen

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`none` | 0 |
`height` | 1 |
`width` | 2 |

### stackFromEnd

    int stackFromEnd

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.

### update_interval

    int update_interval

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 constructors

### R.attr

    R.attr ()