hi i have a question about the gui of a android application.
when i start a project and select 2.3.3 as my api version. i add some gui stuff like a button and then run the code on a 4.0.3 device.
the problem is now: the button looks like a 2.3.3 button and not like the 4.0.3 version.
is there any way to change this?
You have to use one of the Holo
themes for API Level 11+:
res/values
folderDefine your application theme like this:
<style name="AppTheme" parent="@android:style/Theme" />
Create res/values-v11
folder
Define your application theme like this:
<style name="AppTheme" parent="@android:style/Theme.Holo.Light" />
Use AppTheme
in AndroidManifest.xml
For further reading, see section Using Holo while supporting Android 2.x in this article.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With