R.attr | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Fields | Ctors | Inherited Methods | [Expand All]
public static final class

# R.attr

extends Object

java.lang.Object
↳ | com.google.android.gms.R.attr

## Summary

Fields
public static int | adSize | Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
public static int | adSizes | Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
public static int | adUnitId | Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
public static int | appTheme | Must be one of the following constant values.
public static int | buyButtonAppearance | Must be one of the following constant values.
public static int | buyButtonHeight | May be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
public static int | buyButtonText | Must be one of the following constant values.
public static int | buyButtonWidth | May be a dimension value, which is a floating point number appended with a unit such as "`14.5sp`".
public static int | cameraBearing | Must be a floating point value, such as "`1.2`".
public static int | cameraTargetLat | Must be a floating point value, such as "`1.2`".
public static int | cameraTargetLng | Must be a floating point value, such as "`1.2`".
public static int | cameraTilt | Must be a floating point value, such as "`1.2`".
public static int | cameraZoom | Must be a floating point value, such as "`1.2`".
public static int | circleCrop | Must be a boolean value, either "`true`" or "`false`".
public static int | environment | Must be one of the following constant values.
public static int | fragmentMode | Must be one of the following constant values.
public static int | fragmentStyle | 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 | imageAspectRatio | Must be a floating point value, such as "`1.2`".
public static int | imageAspectRatioAdjust | Must be one of the following constant values.
public static int | liteMode | Must be a boolean value, either "`true`" or "`false`".
public static int | mapType | Must be one of the following constant values.
public static int | maskedWalletDetailsBackground | 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 | maskedWalletDetailsButtonBackground | 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 | maskedWalletDetailsButtonTextAppearance | 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 | maskedWalletDetailsHeaderTextAppearance | 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 | maskedWalletDetailsLogoImageType | Must be one of the following constant values.
public static int | maskedWalletDetailsLogoTextColor | Must be a color value, in the form of "`#rgb`", "`#argb`", "`#rrggbb`", or "`#aarrggbb`".
public static int | maskedWalletDetailsTextAppearance | 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 | uiCompass | Must be a boolean value, either "`true`" or "`false`".
public static int | uiMapToolbar | Must be a boolean value, either "`true`" or "`false`".
public static int | uiRotateGestures | Must be a boolean value, either "`true`" or "`false`".
public static int | uiScrollGestures | Must be a boolean value, either "`true`" or "`false`".
public static int | uiTiltGestures | Must be a boolean value, either "`true`" or "`false`".
public static int | uiZoomControls | Must be a boolean value, either "`true`" or "`false`".
public static int | uiZoomGestures | Must be a boolean value, either "`true`" or "`false`".
public static int | useViewLifecycle | Must be a boolean value, either "`true`" or "`false`".
public static int | windowTransitionStyle | Must be one of the following constant values.
public static int | zOrderOnTop | Must be a boolean value, either "`true`" or "`false`".

Public Constructors
| R.attr()

[Expand] 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

#### public static int adSize

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.

#### public static int adSizes

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.

#### public static int adUnitId

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.

#### public static int appTheme

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`holo_dark` | 0 |
`holo_light` | 1 |

#### public static int buyButtonAppearance

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`classic` | 1 |
`grayscale` | 2 |
`monochrome` | 3 |

#### public static int buyButtonHeight

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
--- | --- | ---
`match_parent` | -1 |
`wrap_content` | -2 |

#### public static int buyButtonText

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`buy_with_google` | 1 |
`buy_now` | 2 |
`book_now` | 3 |
`donate_with_google` | 4 |

#### public static int buyButtonWidth

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
--- | --- | ---
`match_parent` | -1 |
`wrap_content` | -2 |

#### public static int cameraBearing

Must be a floating point value, such as "`1.2`".

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 cameraTargetLat

Must be a floating point value, such as "`1.2`".

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 cameraTargetLng

Must be a floating point value, such as "`1.2`".

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 cameraTilt

Must be a floating point value, such as "`1.2`".

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 cameraZoom

Must be a floating point value, such as "`1.2`".

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 circleCrop

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 environment

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`production` | 1 |
`sandbox` | 0 |
`strict_sandbox` | 2 |

#### public static int fragmentMode

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`buyButton` | 1 |
`selectionDetails` | 2 |

#### public static int fragmentStyle

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 imageAspectRatio

Must be a floating point value, such as "`1.2`".

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 imageAspectRatioAdjust

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`none` | 0 |
`adjust_width` | 1 |
`adjust_height` | 2 |

#### public static int liteMode

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 mapType

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`none` | 0 |
`normal` | 1 |
`satellite` | 2 |
`terrain` | 3 |
`hybrid` | 4 |

#### public static int maskedWalletDetailsBackground

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 maskedWalletDetailsButtonBackground

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 maskedWalletDetailsButtonTextAppearance

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 maskedWalletDetailsHeaderTextAppearance

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 maskedWalletDetailsLogoImageType

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`classic` | 1 |
`monochrome` | 2 |

#### public static int maskedWalletDetailsLogoTextColor

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.

#### public static int maskedWalletDetailsTextAppearance

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 uiCompass

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 uiMapToolbar

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 uiRotateGestures

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 uiScrollGestures

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 uiTiltGestures

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 uiZoomControls

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 uiZoomGestures

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 useViewLifecycle

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 windowTransitionStyle

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`slide` | 1 |
`none` | 2 |

#### public static int zOrderOnTop

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 Constructors

#### public R.attr ()