Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently designing the UI for my first Android app. Android (obviously) lets you design any and every element in your app using XML.

On any elements where you leave the "default" (holo) theme on, will that element appear different on different devices. Certain widgets (such as the spinner) match my theme perfectly but I was curious as to whether they will appear different on different versions of Android.

I am designing for Android 4.4.2.

share|improve this question

Specifying no theme will not always result in the device default theme, so if you want to display the default theme then you will have to specifically mention it.

You can declare a theme in your values/styles.xml and then in your values-v11/styles.xml override it with the Holo-version (This way, you'll have Holo themes on API 11+ devices and regular themes on the others) :

values/styles.xml:

<style name="DialogTheme" parent="@android:style/Theme.Dialog"></style>

values-v11/styles.xml:

<style name="DialogTheme" parent="@android:style/Theme.Holo.Light.Dialog.NoActionBar"></style>

And if you are specifically targeting Android 4.4.2 then the appearance will be same on all devices that have Android 4.4.2

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.