Titanium.UI.Android

Submodule of Titanium.UI.
Platform Since
Android 1.0

Summary

The Android specific UI capabilities. All properties, methods and events in this namespace will only work on Android related devices.

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.

hideSoftKeyboard

request that the soft keyboard hide. Note: It is not currently possible in the native Android API to detect that the keyboard is already visible. Note: It is not possible to globally show the keyboard at this point.

openPreferences

open Android native preferences UI activity. You need to place your preferences.xml file in the platform/android/res/xml/ folder of your project. Documentation on the file format may be found in the Android documentation

removeEventListener

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

Properties

Name Type Summary
LINKIFY_ALL Number

Auto link all supported types. read-only

LINKIFY_EMAIL_ADDRESSES Number

Auto link email addresses. read-only

LINKIFY_MAP_ADDRESSES Number

Auto link physical addresses. read-only

LINKIFY_MAP_LINKS Number

Convert all street addresses to clickable links read-only

LINKIFY_PHONE_NUMBERS Number

Auto link phone numbers. read-only

LINKIFY_WEB_URLS Number

Auto link web urls. read-only

PIXEL_FORMAT_A_8 Number

See Android Documentation for PixelFormat read-only

PIXEL_FORMAT_LA_88 Number

See Android Documentation for PixelFormat read-only

PIXEL_FORMAT_L_8 Number

See Android Documentation for PixelFormat read-only

PIXEL_FORMAT_OPAQUE Number

System chooses an opaque format (no alpha bits required) Android Documentation for PixelFormat read-only

PIXEL_FORMAT_RGBA_4444 Number

See Android Documentation for PixelFormat read-only

PIXEL_FORMAT_RGBA_5551 Number

See Android Documentation for PixelFormat read-only

PIXEL_FORMAT_RGBA_8888 Number

See Android Documentation for PixelFormat read-only

PIXEL_FORMAT_RGBX_8888 Number

See Android Documentation for PixelFormat read-only

PIXEL_FORMAT_RGB_332 Number

See Android Documentation for PixelFormat read-only

PIXEL_FORMAT_RGB_565 Number

See Android Documentation for PixelFormat read-only

PIXEL_FORMAT_RGB_888 Number

See Android Documentation for PixelFormat read-only

PIXEL_FORMAT_TRANSLUCENT Number

System chooses a format that supports translucency (many alpha bits). Android Documentation for PixelFormat read-only

PIXEL_FORMAT_TRANSPARENT Number

System chooses a format that supports transparency (at least 1 alpha bit). Android Documentation for PixelFormat read-only

PIXEL_FORMAT_UNKNOWN Number

Allow the Window to select the format. Android Documentation for PixelFormat read-only

SOFT_INPUT_ADJUST_PAN Number

Pan contents when soft keyboard is visible. Use on Activity ("heavy weight window") to suggest how the virtual keyboard should treat the window contents. Must be specified in creation options. read-only

SOFT_INPUT_ADJUST_RESIZE Number

Resize contents when soft keyboard is visible. Use on Activity ("heavy weight window") to suggest how the virtual keyboard should treat the window contents. Must be specified in creation options. read-only

SOFT_INPUT_ADJUST_UNSPECIFIED Number

(default) If set in the AndroidManifest.xml use that setting. Otherwise, let the keyboard decided. Must be specified in creation options. read-only

SOFT_INPUT_STATE_HIDDEN Number

Attempt to hide the soft keyboard when control receives keyboard focus. read-only

SOFT_INPUT_STATE_UNSPECIFIED Number

Use OS default behavior for keyboard focus. read-only

SOFT_INPUT_STATE_VISIBLE Number

Attempt to show the soft keyboard when control receives keyboard focus. read-only

SOFT_KEYBOARD_DEFAULT_ON_FOCUS Number

Use Android default soft keyboard handling. Same as not specifying a value. read-only

SOFT_KEYBOARD_HIDE_ON_FOCUS Number

Request hide soft keyboard on focus. Note: OS can override request. read-only

SOFT_KEYBOARD_SHOW_ON_FOCUS Number

Request show soft keyboard on focus. Note: OS can override request. read-only

SWITCH_STYLE_CHECKBOX Number

Display Switch as an Android Checkbox read-only

SWITCH_STYLE_TOGGLEBUTTON Number

Display Switch as an Android Toggle Button (default) read-only

WEBVIEW_PLUGINS_OFF Number

Disable plugins in Titanium.UI.WebView. read-only

WEBVIEW_PLUGINS_ON Number

Enable plugins in Titanium.UI.WebView. read-only

WEBVIEW_PLUGINS_ON_DEMAND Number

Display a placeholder and only load plugins when user selects placeholder. read-only

Events

This type has no events.