Quicknav Quicknav
Links

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

Android Sites

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

close

- - Get Started
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
    - Get the SDK
  - Google Services
- - Google Play
  - Publishing
  - Promoting
  - App Quality
  - Spotlight
  - Open Distribution

## 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 | The size of the ad.
public static int | adSizes | A comma-separated list of the supported ad sizes.
public static int | adUnitId | The ad unit ID.
public static int | allowShortcuts | Whether or not global search is enabled for this corpus.
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 | contentProviderUri | The URI of the content provider that the index should crawl to get the data for this corpus.
public static int | corpusId | The ID of the corpus.
public static int | corpusVersion | The version of the corpus.
public static int | defaultIntentAction | The default value for the global search section `default_intent_action`.
public static int | defaultIntentActivity | The default value for the global search section `default_intent_aactivity`.
public static int | defaultIntentData | The default value for the global search section `default_intent_data`.
public static int | featureType | The type of this feature.
public static int | indexPrefixes | Indicates if this section should support prefix matching.
public static int | mapType | Must be one of the following constant values.
public static int | noIndex | Indicates if this section should not be indexed.
public static int | paramName | The name of this parameter.
public static int | paramValue | The value of this parameter.
public static int | searchEnabled | Whether or not global search is enabled for this app.
public static int | searchLabel | A localized string to identify this apps data within the global search app.
public static int | sectionContent | The content of this global search section.
public static int | sectionFormat | The format of the section.
public static int | sectionId | The ID of the section.
public static int | sectionType | The type of global search section for this mapping.
public static int | sectionWeight | The weight of the section.
public static int | settingsDescription | A localized string to describe this apps data within the global search apps settings.
public static int | subsectionSeparator | Subsection separator.
public static int | trimmable | Indicates if documents from this corpus can be trimmed when the index reaches its quota.
public static int | uiCompass | 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 | 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

The size of the ad. It must be one of BANNER, FULL_BANNER, LEADERBOARD, MEDIUM_RECTANGLE, SMART_BANNER, WIDE_SKYSCRAPER, or <width>x<height>.

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

A comma-separated list of the supported ad sizes. The sizes must be one of BANNER, FULL_BANNER, LEADERBOARD, MEDIUM_RECTANGLE, SMART_BANNER, WIDE_SKYSCRAPER, or <width>x<height>.

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

The ad unit ID.

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 allowShortcuts

Whether or not global search is enabled for this corpus. Optional; defaults to `true`. If set to `false`, it will be treated as if the `GlobalSearchCorpus` element did not exist. Allow shortcuts to global search results from this corpus to be created. If set to `true`, the global search app may allow the user to create shortcuts to results, for example on the users home screen. The short cuts may be long lived, and may persist after the linked document has been deleted. The activity that handles the global search result intent should be able to deal with this gracefully. Defaults to `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.

#### 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 contentProviderUri

The URI of the content provider that the index should crawl to get the data for this corpus. Required. This string must not change between configurations.

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 corpusId

The ID of the corpus. Required. This string must not change between configurations.

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 corpusVersion

The version of the corpus. Optional; defaults to `"0"`. This string must not change between configurations.

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 defaultIntentAction

The default value for the global search section `default_intent_action`. Optional. This string must not change between configurations.

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 defaultIntentActivity

The default value for the global search section `default_intent_aactivity`. Optional. This string must not change between configurations.

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 defaultIntentData

The default value for the global search section `default_intent_data`. Optional. This string must not change between configurations.

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 featureType

The type of this feature. Required.

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`match_global_nicknames` | 1 | Enable global nickname matching on this section
`demote_common_words` | 2 | Demote common words by a factor in this section
`demote_rfc822_hostnames` | 3 | Demote RFC822 hostnames by a factor in this section. Only applicable to RFC822 sections

#### public static int indexPrefixes

Indicates if this section should support prefix matching. Optional; defaults to `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.

#### 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 noIndex

Indicates if this section should not be indexed. Optional; defaults to `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.

#### public static int paramName

The name of this parameter. Required.

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 paramValue

The value of this parameter. Optional.

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 searchEnabled

Whether or not global search is enabled for this app. Optional; defaults to `true`. If set to `false`, it will be treated as if the `GlobalSearch` element did not exist.

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 searchLabel

A localized string to identify this apps data within the global search app. Required.

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 sectionContent

The content of this global search section. This is a global search section template string. It should contain a reference to a string which can change between configurations.

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 sectionFormat

The format of the section. Optional; default to `plain`.

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`plain` | 0 |
`html` | 1 |
`rfc822` | 2 |

#### public static int sectionId

The ID of the section. Required. This string must not change between configurations.

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 sectionType

The type of global search section for this mapping.

Must be one of the following constant values.

Constant | Value | Description
--- | --- | ---
`text1` | 0 |
`text2` | 1 |
`icon_uri` | 2 |
`intent_action` | 3 |
`intent_data` | 4 |
`intent_data_id` | 5 |
`intent_extra_data` | 6 |
`large_icon_uri` | 7 |
`intent_activity` | 8 |

#### public static int sectionWeight

The weight of the section. Optional; defaults to 1.

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 static int settingsDescription

A localized string to describe this apps data within the global search apps settings. Optional.

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 subsectionSeparator

Subsection separator. Optional. If not provided, the section is not split into subsections.

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 trimmable

Indicates if documents from this corpus can be trimmed when the index reaches its quota. Optional; defaults to `true`.

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 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 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 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 ()