Android.Content.Res Namespace

Contains APIs for accessing application resources and describing device configurations that affect resource selection.

Classes

Name Description
AssetFileDescriptor

File descriptor of an entry in the AssetManager.

AssetFileDescriptor.AutoCloseInputStream

An InputStream you can create on a ParcelFileDescriptor, which will take care of calling ParcelFileDescriptor#close ParcelFileDescriptor.close() for you when the stream is closed.

AssetFileDescriptor.AutoCloseOutputStream

An OutputStream you can create on a ParcelFileDescriptor, which will take care of calling ParcelFileDescriptor#close ParcelFileDescriptor.close() for you when the stream is closed.

AssetFileDescriptor.InterfaceConsts

Contains constants inherited from the Android Parcelable interface.

AssetManager

Provides access to an application's raw asset files; see Resources for the way most applications will want to retrieve their resource data.

AssetManager.AssetInputStream

An input stream for reading an asset.

ColorStateList

Lets you map android.view.View state sets to colors.

ColorStateList.InterfaceConsts

Contains constants inherited from the Android Parcelable interface.

Configuration

This class describes all device configuration information that can impact the resources the application retrieves.

Configuration.InterfaceConsts

Contains constants inherited from the Android Parcelable contract.

ObbInfo

Basic information about a Opaque Binary Blob (OBB) that reflects the info from the footer on the OBB file.

ObbInfo.InterfaceConsts

Contains constants inherited from the Android Parcelable interface.

ObbScanner

Class to scan Opaque Binary Blob (OBB) files.

Resources

Class for accessing an application's resources.

Resources.NotFoundException

This exception is thrown by the resource APIs when a requested resource can not be found.

Resources.Theme

This class holds the current attribute values for a particular theme.

TypedArray

Container for an array of values that were retrieved with Resources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) or Resources#obtainAttributes.

Interfaces

Name Description
IFontScaleConverter

A converter for non-linear font scaling.

IXmlResourceParser

The XML parsing interface returned for an XML resource.

Enums

Name Description
Access

Enumerates values returned by several methods of Access and taken as a parameter of the F:Android.Content.Res.AssetManager.Open member.

ColorMode

Describes the color capabilities of a screen.

GrammaticalGender

Specifies the user's preferred grammatical gender for terms of address in an application.

HardKeyboardHidden

Enumerates values returned by several types.

KeyboardHidden

Enumerates values returned by several types.

KeyboardType

Enumerates values returned by several types.

Navigation

Enumerates values returned by several types.

NavigationHidden

Enumerates values returned by several types.

ObbFlags

Enumerates values returned by several types.

Orientation

Enumerates values returned by several types.

Screen

Enumerates values returned by several types.

ScreenLayout

Enumerates values returned by several types.

TouchScreenType

Enumerates values returned by several types.

UiMode

Enumerates values returned by several types.

Remarks

Use these APIs to access packaged assets and typed resources, resolve themed attributes, and inspect resource-relevant device configuration.

Android platform documentation for android.content.res.