public final class R.attr


Summary

Public fields

static int

A reference to an array of integers representing the locations of horizontal keylines in dp from the starting edge.

static int

The id of an anchor view that this view should position relative to.

static int

Specifies how an object should position relative to an anchor, on both the X and Y axes, within its parent's bounds.

static int

The class name of a Behavior class defining special runtime behavior for this child view.

static int

Specifies how this view dodges the inset edges of the CoordinatorLayout.

static int

Specifies how this view insets the CoordinatorLayout and make some other views dodge it.

static int

The index of a keyline this view should position relative to. android:layout_gravity will affect how the view aligns to the specified keyline.

static int

Drawable to display behind the status bar when the view is set to draw behind it.

Public constructors

Public fields

keylines

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

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

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.

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

Constant Value Description
bottom 50 Push object to the bottom of its container, not changing its size.
center 11 Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal 1 Place object in the horizontal center of its container, not changing its size.
center_vertical 10 Place object in the vertical center of its container, not changing its size.
clip_horizontal 8 Additional 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_vertical 80 Additional 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.
end 800005 Push object to the end of its container, not changing its size.
fill 77 Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal 7 Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical 70 Grow the vertical size of the object if needed so it completely fills its container.
left 3 Push object to the left of its container, not changing its size.
right 5 Push object to the right of its container, not changing its size.
start 800003 Push object to the beginning of its container, not changing its size.
top 30 Push object to the top of its container, not changing its size.

layout_behavior

public static 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_dodgeInsetEdges

public static int layout_dodgeInsetEdges

Specifies how this view dodges the inset edges of the CoordinatorLayout.

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

Constant Value Description
all 77 Dodge all the inset edges.
bottom 50 Dodge the bottom inset edge.
end 800005 Dodge the end inset edge.
left 3 Dodge the left inset edge.
none 0 Don't dodge any edges
right 5 Dodge the right inset edge.
start 800003 Dodge the start inset edge.
top 30 Dodge the top inset edge.

layout_insetEdge

public static int layout_insetEdge

Specifies how this view insets the CoordinatorLayout and make some other views dodge it.

Must be one of the following constant values.

Constant Value Description
bottom 50 Inset the bottom edge.
end 800005 Inset the end edge.
left 3 Inset the left edge.
none 0 Don't inset.
right 5 Inset the right edge.
start 800003 Inset the start edge.
top 30 Inset the top edge.

layout_keyline

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

statusBarBackground

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

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

Public constructors

attr

public attr()