As I understand, preserving native look and feel is the recommended practice on android, but I can’t help but notice that the default components compiled are not displayed as Holo on Jellybean. Does this mean that we must specify Holo in the version 11 folder styles.xml and have defaul elsewhere? It just seems counterintuitive to specify a custom theme to achieve a native experience.
As I understand, preserving native look and feel is the recommended practice on android,
Share
When coding for multiple platform versions, you do need to specify a theme.
Under
res/values/styles.xml, you should have something like:And then in
res/values-v11/styles.xmlThen in your AndroidManifest.xml, you should specify the theme as:
However, if you don’t specify any theme at all (so no
android:themeattribute), Android should automatically go to the device’s default theme.