Would you like to contribute to the Titanium docs? To get started, sign up for an account on the Appcelerator Wiki and sign our CLA.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Warning for theme naming

...

The Titanium SDK includes a few predefined themes.  You can use these themes in your application rather than creating your own.  

NOTE: Do not create a theme with the same name as a predefined theme.

Theme NameSDK VersionDescription
Theme.Titanium*

Theme based off the Android SDKs default AppCompat theme with the splash screen image as the default background.

Prior to 3.3.0, displays the title bar.

Since 3.3.0 and later, hides the action and title bar.

Theme.AppCompat.Translucent3.4.0Theme based off the AppCompat theme with a transparent background and a solid action bar
Theme.AppCompat.Translucent.NoTitleBar3.4.0Same as Theme.AppCompat.Translucent but with no action or title bar.
Theme.AppCompat.Translucent.NoTitleBar.Fullscreen3.4.0Same as Theme.AppCompat.Translucent.NoTitleBar but the window is fullscreen (covers the status bar).
Theme.AppCompat.Fullscreen3.4.0Theme based off the AppCompat theme with a fullscreen window (covers the status bar) with no action or title bar.

Theme.AppCompat.NoTitleBar

4.2.0Theme based off the AppCompat theme with no action and title bar.

Theme.AppCompat.NoTitleBar.Fullscreen

4.2.0Same as Theme.AppCompat.NoTitleBar with a fullscreen window (covers the status bar).

...

To use the Material Theme with Titanium, you need to create a custom theme that extends one of the AppCompat themes, then set the color palette attributes you want to change from the default theme (see the attribute table below).  You will need to build your application with Android SDK 5.0 (API 21) and greater.  Note that some of the attributes will not be applied when the application is ran on devices running previous versions of Android (pre-Lollipop) (see the comparison table below).

...