[AC-1350] Android themes with Ti SDK 4.1.0.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2015-07-17T17:06:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Clément Blanco |
Assignee | Radamantis Torres-Lechuga |
Created | 2015-07-14T07:08:42.000+0000 |
Updated | 2016-03-08T07:37:45.000+0000 |
Description
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.
Just realized that maybe this should go into TIMOB project. Sorry about that. Please move.
[~clement] hello, can you please attach a test case and steps to reproduce? Thanks
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.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
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?
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