My application is compatible with Android 2.x through 4.x:
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15" />
In my application theme, I use the selector theme suggested on the Android dev website:
<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/LightThemeSelector" >
I have several / res / values - * directories for managing styles of different sizes / versions of Android devices. For example, in / res / values -large.xml I have a selector that selects the theme of the old android Light:
<style name="LightThemeSelector" parent="android:Theme.Light" > <item name="android:windowNoTitle">true</item> </style>
However, in my / res / values -sw720dp.xml (and / res / values-sw600dp.xml) I have a selector that selects the new android theme Holo.Light, which should automatically provide me with an ActionBar:
<style name="LightThemeSelector" parent="android:Theme.Holo.Light" > <item name="android:windowNoTitle">true</item> </style>
However, when I run the application on the XOOM simulator, it does not show an ActionBar. If I installed a manifest file to directly specify Theme.Holo.Light, then I get an ActionBar when I run my XOOM emulator.
source share