Android: default AppTheme background colors

前端 未结 2 1497
无人及你
无人及你 2021-02-03 21:16

What are the default background colors for Activities in Android\'s AppTheme style?

I\'m looking for the hex code, or something that I can reference. It

相关标签:
2条回答
  • 2021-02-03 22:03

    Check out this colors.xml file. If you do a Ctrl-F for "backround_holo_dark" you can find the hex code. All the other holo theme colors are there as well. Enjoy!

    <drawable name="screen_background_holo_light">#fff3f3f3</drawable>
    <drawable name="screen_background_holo_dark">#ff000000</drawable>
    <color name="background_holo_dark">#ff000000</color>
    <color name="background_holo_light">#fff3f3f3</color>
    
    0 讨论(0)
  • 2021-02-03 22:11

    You can use your theme's default background color by referencing the attribute:

    ?android:colorBackground

    0 讨论(0)
提交回复
热议问题