Android Programming Press on the image to return to the main documentation page.

AndroidResources

Written by Martin Pearman

List of types:

AndroidResources

AndroidResources


Events:

None

Members:


  GetAndroidDrawable (ResourceName As String) As android.graphics.drawable.Drawable

  GetAndroidDrawableNames As List

  GetAndroidDrawables (ResourceNames As Map) As Map

  GetAndroidString (ResourceName As String) As String

  GetAndroidStringNames As List

  GetAndroidStrings (ResourceNames As Map) As Map

  GetApplicationDrawable (ResourceName As String) As android.graphics.drawable.Drawable

  GetApplicationDrawables (ResourceNames As Map) As Map

  GetApplicationRawResource (ResourceName As String) As InputStreamWrapper

  GetApplicationResourceNames (ResourceType As String) As List

  GetApplicationString (ResourceName As String) As String

  GetApplicationStrings (ResourceNames As Map) As Map

Members description:

GetAndroidDrawable (ResourceName As String) As android.graphics.drawable.Drawable
Get an android resource drawable by ResourceName.
Returns Null if the Drawable is not found.
GetAndroidDrawableNames As List
Get a List of all available android Drawable resource names.
GetAndroidDrawables (ResourceNames As Map) As Map
Get one or more android resource Drawables.
Pass a Map to this method where each Map key is an android Drawable resource name.
The method will return the same Map object where the Map values are the android resource Drawables defined by the Map keys.
If an android resource Drawable is not found the Map value will not be changed.
GetAndroidString (ResourceName As String) As String
Get an android resource string by ResourceName.
Returns Null if the String is not found.
GetAndroidStringNames As List
Get a List of all available android String resource names.
GetAndroidStrings (ResourceNames As Map) As Map
Get one or more android resource Strings.
Pass a Map to this method where each Map key is an android String resource name.
The method will return the same Map object where the Map values are the android resource Strings defined by the Map keys.
If an android String is not found the Map value will not be changed.
GetApplicationDrawable (ResourceName As String) As android.graphics.drawable.Drawable
Get an application resource Drawable by ResourceName.
Returns Null if the Drawable is not found.
GetApplicationDrawables (ResourceNames As Map) As Map
Get one or more application resource Drawables.
Pass a Map to this method where each Map key is an application Drawable resource name.
The method will return the same Map object where the Map values are the application resource Drawables defined by the Map keys.
If an application resource Drawable is not found the Map value will not be changed.
GetApplicationRawResource (ResourceName As String) As InputStreamWrapper
Get an application raw resource as an InputStream.
The InputStream will not be initialized if the raw resource cannot be found.
GetApplicationResourceNames (ResourceType As String) As List
Returns a List of Strings which are the application resource names for the ResourceType.
ResourceType must be one of the android R class nested class names.
ResourceType values such as color, drawable, integer, layout and string are valid.
All nested R class classes are documented here:
http://developer.android.com/reference/android/R.html
GetApplicationString (ResourceName As String) As String
Get an application resource String by ResourceName.
Returns Null if the String is not found.
GetApplicationStrings (ResourceNames As Map) As Map
Get one or more application resource Strings.
Pass a Map to this method where each Map key is an application String resource name.
The method will return the same Map object where the Map values are the application resource Strings defined by the Map keys.
If an application resource String is not found the Map value will not be changed.
Top