Creating styles-v21.xml

后端 未结 5 1510
余生分开走
余生分开走 2020-12-08 19:29

In Android Studio, I imported a project which did not include styles.xml (v21). So I created a styles-v21.xml file in the values direc

5条回答
  •  执念已碎
    2020-12-08 19:59

    By default, Android Studio doesn't create styles.xml (v21). What you need to do is create a folder structure like the following:

    • res/values/styles.xml
    • res/values-v21/styles.xml

    And this is what you will get in Android Studio:

    Then you can defined different AppTheme for different API levels.

提交回复
热议问题