Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1350] Android themes with Ti SDK 4.1.0.GA

GitHub Issuen/a
Resolution Date2015-07-17T17:06:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ReporterClément Blanco
AssigneeRadamantis Torres-Lechuga


Guys, I’ve been trying to use Android themes with Ti SDK 4.1.0.GA but with no luck. I’ve tried to compile a new empty tabbed project using http://jgilfelt.github.io/android-actionbarstylegenerator with AppCompat but with no luck. I don’t understand.


  1. Clément Blanco 2015-07-14

    Just realized that maybe this should go into TIMOB project. Sorry about that. Please move.
  2. Radamantis Torres-Lechuga 2015-07-15

    [~clement] hello, can you please attach a test case and steps to reproduce? Thanks
  3. Clément Blanco 2015-07-15

    Well it's pretty straight forward to reproduce: - Create an empty alloy tabbed application with Appcelerator Studio using Ti SDK 4.0.0 or Ti SDK 4.1.0 - Follow the documentation instructions http://docs.appcelerator.com/platform/latest/#!/guide/Android_Themes-section-34636181_AndroidThemes-TitaniumThemes - Clean, build and run your application on an Android API 19 emulator. - The theme is not applied. After digging into this a lot, hours of testing, I managed to get my theme up and running but I had to use only AppCompat and I had to provide both normal items in styles and items where the name was something like android:@style/something. Probably a compatibility issue, not sure exactly. To me the documentation is not really clear.
  4. Fokke Zandbergen 2015-07-17

    If you compile with 4.0.0.GA+ it will use the Material Design theme. See the CI version of the Android Theme guide: https://appcelerator.github.io/appc-docs/latest/#!/guide/Android_Themes
  5. Clément Blanco 2015-07-20

    So if I use Ti SDK 4.0.0.GA+, I *must* use the Material Theme? Even If I run the application on Android 4.4?
  6. Fokke Zandbergen 2015-07-20

    Yes, since 3.3.0 Titanium uses Android [AppCompat](https://developer.android.com/tools/support-library/features.html#v7-appcompat) so that you can use Android 5.x features down to Android 2.3.x

JSON Source