Skip to content

Most visited

Recently visited

navigation
Added in API level 1

android

Contains resource classes used by applications included in the platform and defines application permissions for system features.

You can use some resources directly from these R classes in your own applications, but you should generally use only resources that you've provided directly in your application, in order to provide a cohesive application package that has no external dependencies. In particular, you should not use drawable resources from the android package, because they may change between platform versions, causing unforeseen conflicts with your design. Typically, styles are the only resources you should use directly from these resources.

For information about using resources, see the Application Resources developer guide.

Classes

Manifest  
Manifest.permission  
Manifest.permission_group  
R  
R.anim  
R.animator  
R.array  
R.attr  
R.bool  
R.color  
R.dimen  
R.drawable  
R.fraction  
R.id  
R.integer  
R.interpolator  
R.layout  
R.menu  
R.mipmap  
R.plurals  
R.raw  
R.string  
R.style  
R.styleable  
R.transition  
R.xml  
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.