For some Activity I’m using @Theme/Dialog, but this appears like old UI 2.3.
If I set the Theme of the Activity in the Manifest as Holo/Dialog, then this work fine, but of course this will not work with older devices.
How to force Holo Theme when available?
I tried with a custom MyTheme, but all the activity that have @android:style/Theme.Dialog, continue to appear like old theme.
My activity look like below:
<activity
android:name=".audio.TempoManager"
android:label="Tempo Manager"
android:theme="@android:style/Theme.Dialog" />
if I change it to @android:style/Theme.Holo.Dialog then on old device the activities will not be open as dialog but as simple activity.
refer to this blog post. it answers your question: holo-everywhere
mainly:
1. you write a
theme.xmlfile defining aMyThemeinres/values/for all pre-3.0 android versions.2. write a
themes.xmlfile defining theMyThemeinres/values-v11/for 3.0+ android versions.3. in the
AndroidManifest.xmldefine the application theme to beMyTheme.the first theme inherits from
@android:style/Theme.the second theme inherits from
@android:style/Theme.Holo.