Android Guides | Samples

Android.Content.Res.Resources: Method Members

The methods of Android.Content.Res.Resources are listed below. For a list of all members, see the Resources Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

FinishPreloading()
Called by zygote when it is done preloading resources, to change back to normal Resources operation.
FlushLayoutCache()
Call this to remove all cached loaded layout resources from the Resources object.
GetAnimation(int) : XmlReader
Return an XmlResourceParser through which you can read an animation description for the given resource ID.
GetBoolean(int) : bool
Return a boolean associated with a particular resource ID.
GetColor(int) : Color
Return a color integer associated with a particular resource ID.
GetColorStateList(int) : ColorStateList
Return a color state list associated with a particular resource ID.
GetDimension(int) : float
Retrieve a dimensional for a particular resource ID.
GetDimensionPixelOffset(int) : int
Retrieve a dimensional for a particular resource ID for use as an offset in raw pixels.
GetDimensionPixelSize(int) : int
Retrieve a dimensional for a particular resource ID for use as a size in raw pixels.
GetDrawable(int) : Drawable
Return a drawable object associated with a particular resource ID.
GetDrawable(int, Theme) : Drawable
Return a drawable object associated with a particular resource ID and styled for the specified theme.
GetDrawableForDensity(int, int) : Drawable
Return a drawable object associated with a particular resource ID for the given screen density in DPI.
GetDrawableForDensity(int, int, Theme) : Drawable
Return a drawable object associated with a particular resource ID for the given screen density in DPI and styled for the specified theme.
GetFraction(int, int, int) : float
Retrieve a fractional unit for a particular resource ID.
GetIdentifier(string, string, string) : int
Return a resource identifier for the given resource name.
GetIntArray(int) : int[]
Return the int array associated with a particular resource ID.
GetInteger(int) : int
Return an integer associated with a particular resource ID.
GetLayout(int) : XmlReader
Return an XmlResourceParser through which you can read a view layout description for the given resource ID.
GetMovie(int) : Movie
Return a movie object associated with the particular resource ID.
GetQuantityString(int, int) : string
Returns the string necessary for grammatically correct pluralization of the given resource ID for the given quantity.
GetQuantityString(int, int, params Object[]) : string
GetQuantityText(int, int) : string
GetQuantityTextFormatted(int, int) : ICharSequence
Returns the character sequence necessary for grammatically correct pluralization of the given resource ID for the given quantity.
GetResourceEntryName(int) : string
Return the entry name for a given resource identifier.
GetResourceName(int) : string
Return the full name for a given resource identifier.
GetResourcePackageName(int) : string
Return the package name for a given resource identifier.
GetResourceTypeName(int) : string
Return the type name for a given resource identifier.
GetString(int) : string
Return the string value associated with a particular resource ID.
GetString(int, params Object[]) : string
GetStringArray(int) : string[]
Return the string array associated with a particular resource ID.
GetText(int) : string
GetText(int, string) : string
GetTextArray(int) : string[]
GetTextArrayFormatted(int) : ICharSequence[]
Return the styled text array associated with a particular resource ID.
GetTextFormatted(int) : ICharSequence
Return the string value associated with a particular resource ID.
GetTextFormatted(int, ICharSequence) : ICharSequence
Return the string value associated with a particular resource ID.
GetValue(int, TypedValue, bool)
Return the raw data associated with a particular resource ID.
GetValue(string, TypedValue, bool)
Return the raw data associated with a particular resource ID.
GetValueForDensity(int, int, TypedValue, bool)
Get the raw value associated with a resource with associated density.
GetXml(int) : XmlReader
Return an XmlResourceParser through which you can read a generic XML resource for the given resource ID.
NewTheme() : Theme
Generate a new Theme object for this set of Resources.
ObtainAttributes(IAttributeSet, int[]) : TypedArray
Retrieve a set of basic attribute values from an AttributeSet, not performing styling of them using a theme and/or style resources.
ObtainTypedArray(int) : TypedArray
Return an array of heterogeneous values.
OpenRawResource(int) : Stream
Open a data stream for reading a raw resource.
OpenRawResource(int, TypedValue) : Stream
Open a data stream for reading a raw resource.
OpenRawResourceFd(int) : AssetFileDescriptor
Open a file descriptor for reading a raw resource.
ParseBundleExtra(string, IAttributeSet, Bundle)
Parse a name/value pair out of an XML tag holding that data.
ParseBundleExtras(XmlReader, Bundle)
Parse a series of NoType:android/R$styleable;Href=../../../../reference/android/R.styleable.html#Extra tags from an XML file.
UpdateConfiguration(Configuration, DisplayMetrics)
Store the newly updated configuration.