sebasira
sebasira

Reputation: 1834

android - Apply same style to all API levels

I'm new to Android and I've got a doubt that I couldn't answer searching.

I'm developing an application that would run from android v2.3 to 4.3. I know that the folders:

containing the style.xml for each API level.

I want to apply the same exactly theme to all API levels. Right now, what I'm doing is copying the content of the XML to the other XML files in the other folders. But if I forgot to do that then the app looks different if the device has an android version different from the default one that I use (v2.3)

Is there a way so the app has only one style.xml file for all API levels?

Upvotes: 1

Views: 579

Answers (1)

jose-rodrigues
jose-rodrigues

Reputation: 131

The styles.xml located in the res/values directory is used by all versions, so use this one.

Upvotes: 1

Related Questions