Titanium.Android.R

Object of Titanium.Android.
Platform Since
Android 1.5

Summary

The Titanium binding of android.R. Note that this accesses Android system-wide resources, not your application's resources. To access your application's resources, you want Titanium.App.Android.R.

Description

These properties and sub-properties are queried directly against the android.R class, and should have the same syntax. For example, to retrieve the "OK" string in Android:

Ti.Android.currentActivity.getString(Ti.Android.R.string.ok);

Methods

Name Summary
addEventListener

Adds the specified callback as an event listener for the named event.

fireEvent

Fires a synthesized event to any registered listeners.

removeEventListener

Removes the specified callback as an event listener for the named event.

Properties

Name Type Summary
anim Object

Animation resources, see http://developer.android.com/reference/android/R.anim.html read-only

array Object

Array resources, see http://developer.android.com/reference/android/R.array.html read-only

attr Object

Attribute resources, see http://developer.android.com/reference/android/R.attr.html read-only

color Object

Color resources, see http://developer.android.com/reference/android/R.color.html read-only

dimen Object

Dimension resources, see http://developer.android.com/reference/android/R.dimen.html read-only

drawable Object

Drawable resources, see http://developer.android.com/reference/android/R.drawable.html read-only

id Object

ID resources, see http://developer.android.com/reference/android/R.id.html read-only

integer Object

Integer resources, see http://developer.android.com/reference/android/R.integer.html read-only

layout Object

Layout resources, see http://developer.android.com/reference/android/R.layout.html read-only

string Object

String resources, see http://developer.android.com/reference/android/R.string.html read-only

style Object

Style resources, see http://developer.android.com/reference/android/R.style.html read-only

styleable Object

Styleable reosurces, see http://developer.android.com/reference/android/R.styleable.html read-only

Events

This type has no events.