Android.Content.Res.Resources Members

The members of Android.Content.Res.Resources are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Create a new Resources object on top of an existing set of assets in an AssetManager.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
AssetsAssetManager. Retrieve underlying AssetManager storage for these resources.
[read-only]
ConfigurationConfiguration. Return the current configuration that is in effect for this resource object.
[read-only]
DisplayMetricsAndroid.Util.DisplayMetrics. Return the current display metrics that are in effect for this resource object.
[read-only]
static
SystemResources. Return a global shared Resources object that provides access to only system resources (no application resources), and is not configured for the current screen (can not use dimension units, does not change based on orientation, etc).

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

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) : System.Xml.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) : Android.Graphics.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) : Android.Graphics.Drawables.Drawable
Return a drawable object associated with a particular resource ID.
GetDrawable(int, Resources.Theme) : Android.Graphics.Drawables.Drawable
Return a drawable object associated with a particular resource ID and styled for the specified theme.
GetDrawableForDensity(int, int) : Android.Graphics.Drawables.Drawable
Return a drawable object associated with a particular resource ID for the given screen density in DPI.
GetDrawableForDensity(int, int, Resources.Theme) : Android.Graphics.Drawables.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) : System.Xml.XmlReader
Return an XmlResourceParser through which you can read a view layout description for the given resource ID.
GetMovie(int) : Android.Graphics.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 Java.Lang.Object[]) : string
Documentation for this section has not yet been entered.
GetQuantityText(int, int) : string
Documentation for this section has not yet been entered.
GetQuantityTextFormatted(int, int) : Java.Lang.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 Java.Lang.Object[]) : string
Documentation for this section has not yet been entered.
GetStringArray(int) : string[]
Return the string array associated with a particular resource ID.
GetText(int) : string
Documentation for this section has not yet been entered.
GetText(int, string) : string
Documentation for this section has not yet been entered.
GetTextArray(int) : string[]
Documentation for this section has not yet been entered.
GetTextArrayFormatted(int) : Java.Lang.ICharSequence[]
Return the styled text array associated with a particular resource ID.
GetTextFormatted(int) : Java.Lang.ICharSequence
Return the string value associated with a particular resource ID.
GetTextFormatted(int, Java.Lang.ICharSequence) : Java.Lang.ICharSequence
Return the string value associated with a particular resource ID.
GetValue(int, Android.Util.TypedValue, bool)
Return the raw data associated with a particular resource ID.
GetValue(string, Android.Util.TypedValue, bool)
Return the raw data associated with a particular resource ID.
GetValueForDensity(int, int, Android.Util.TypedValue, bool)
Get the raw value associated with a resource with associated density.
GetXml(int) : System.Xml.XmlReader
Return an XmlResourceParser through which you can read a generic XML resource for the given resource ID.
NewTheme() : Resources.Theme
Generate a new Theme object for this set of Resources.
ObtainAttributes(Android.Util.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) : System.IO.Stream
Open a data stream for reading a raw resource.
OpenRawResource(int, Android.Util.TypedValue) : System.IO.Stream
Open a data stream for reading a raw resource.
OpenRawResourceFd(int) : AssetFileDescriptor
Open a file descriptor for reading a raw resource.
ParseBundleExtra(string, Android.Util.IAttributeSet, Android.OS.Bundle)
Parse a name/value pair out of an XML tag holding that data.
ParseBundleExtras(System.Xml.XmlReader, Android.OS.Bundle)
Parse a series of NoType:android/R$styleable;Href=../../../../reference/android/R.styleable.html#Extra tags from an XML file.
UpdateConfiguration(Configuration, Android.Util.DisplayMetrics)
Store the newly updated configuration.