R.attr
public final class R.attr
Summary
Public fields |
|
|---|---|
static int |
WearableActionDrawerView Provides a Menu to the action drawer. |
static int |
CircularProgressLayout Sets the color of the background circle. |
static int |
WearableRecyclerView Taps within this radius and the radius of the screen are considered close enough to the bezel to be candidates for circular scrolling. |
static int |
BoxInsetLayout Deprecated. |
static int |
Enables/disables circular touch scrolling for this view. |
static int |
Sets the color scheme used by the progress indicator. |
static int |
Sets which view should be used as the drawer's content. |
static int |
Adds a title to the drawer content. |
static int |
Sets whether or not the drawer will automatically peek and un-peek. |
static int |
Sets if the progress should be shown as an indeterminate spinner. |
static int |
WearableNavigationDrawerView Sets the navigation style. |
static int |
WearableDrawerView Sets which view should be shown in the drawer's peek state. |
static int |
Sets how many degrees the user has to rotate by to scroll through one screen height when they are using the circular scrolling gesture. |
static int |
Shows the overflow icon in the peek view rather than the first action's icon. |
static int |
Sets the stroke width of the progress indicator. |
Public constructors |
|---|
attr() |
Public fields
actionMenu
public static int actionMenu
WearableActionDrawerView Provides a Menu to the action drawer.
May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".
backgroundColor
public static int backgroundColor
CircularProgressLayout Sets the color of the background circle.
May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
bezelWidth
public static int bezelWidth
WearableRecyclerView Taps within this radius and the radius of the screen are considered close enough to the bezel to be candidates for circular scrolling. Expressed as a fraction of the screen's radius. The default is the whole screen i.e 1.0f
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.
boxedEdges
public static int boxedEdges
BoxInsetLayout Deprecated. Use layout_boxedEdges instead.
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
| all | f | The view will force an inset on all of the edges of the children. |
| bottom | 8 | The view will force an inset on the bottom edge of the children. |
| left | 1 | The view will force an inset on the left edge of the children. |
| none | 0 | Default boxing setting. There are no insets forced on the child views. |
| right | 4 | The view will force an inset on the right edge of the children. |
| top | 2 | The view will force an inset on the top edge of the children. |
circularScrollingGestureEnabled
public static int circularScrollingGestureEnabled
Enables/disables circular touch scrolling for this view. When enabled, circular touch gestures around the edge of the screen will cause the view to scroll up or down.
May be a boolean value, such as "true" or "false".
colorSchemeColors
public static int colorSchemeColors
Sets the color scheme used by the progress indicator. This may be an array of colors or a single color. If an array of colors is used, first color will be used for determinate progress indicator, while the rest will be shown in order during indeterminate spinner.
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", or "#aarrggbb".
drawerContent
public static int drawerContent
Sets which view should be used as the drawer's content.
May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".
drawerTitle
public static int drawerTitle
Adds a title to the drawer content.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
enableAutoPeek
public static int enableAutoPeek
Sets whether or not the drawer will automatically peek and un-peek.
May be a boolean value, such as "true" or "false".
indeterminate
public static int indeterminate
Sets if the progress should be shown as an indeterminate spinner.
May be a boolean value, such as "true" or "false".
navigationStyle
public static int navigationStyle
WearableNavigationDrawerView Sets the navigation style. Defaults to singlePage.
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
| multiPage | 1 | Multi-page navigation drawer style. Each item is on its own page. Useful when more than 7 items exist. |
| singlePage | 0 | Single page navigation drawer style. This is the default drawer style. It is ideal for 1-5 items, but works with up to 7 items. If more than 7 items exist, then the drawer will be displayed as empty. |
peekView
public static int peekView
WearableDrawerView Sets which view should be shown in the drawer's peek state.
May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".
scrollDegreesPerScreen
public static int scrollDegreesPerScreen
Sets how many degrees the user has to rotate by to scroll through one screen height when they are using the circular scrolling gesture. The default value equates 180 degrees scroll to one screen.
May be a floating point value, such as "1.2".
showOverflowInPeek
public static int showOverflowInPeek
Shows the overflow icon in the peek view rather than the first action's icon. Also, taps on the peek view will open the drawer rather than executing the first action.
May be a boolean value, such as "true" or "false".
strokeWidth
public static int strokeWidth
Sets the stroke width of the progress indicator.
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).