Android default theme

前端 未结 3 989
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-12 21:53

I am making one android application but i was thinking about themes..

If i don\'t declare a theme of my Android application which theme will be used? Where i can find t

3条回答
  •  粉色の甜心
    2021-02-12 22:08

    The default theme varies depending on the API level (to be consistent with the general UI).

    On API < 10, the theme was a set of styles (as in the link below) known as Theme, above that API 10, the default theme was Theme_Holo and now, starting with API 21, the default theme has become Theme.Material.

    • API < 10: see the frameworks's code Theme or Theme.AppCompat
    • 10 >= API < 21: read the Styles and Themes guide Holo_Theme or Theme.AppCompat
    • API >= 21 Using the Material Theme guide Theme.Material

    Most of those styles are available through the android.support libraries.

    PS: AFAIK the light theme has always been the default one.

提交回复
热议问题