colorPrimary等资源
- colorPrimary 应用的主要色调,actionBar默认使用该颜色,Toolbar导航栏的底色
colorPrimaryDark 应用的主要暗色调,statusBarColor默认使用该颜色
statusBarColor 状态栏颜色,默认使用colorPrimaryDark
windowBackground 窗口背景颜色
navigationBarColor 底部栏颜色
colorForeground 应用的前景色,ListView的分割线,switch滑动区默认使用该颜色
colorBackground 应用的背景色,popMenu的背景默认使用该颜色
colorAccent CheckBox,RadioButton,SwitchCompat等一般控件的选中效果默认采用该颜色
colorControlNormal CheckBox,RadioButton,SwitchCompat等默认状态的颜色。
colorControlHighlight 控件按压时的色调
colorControlActivated 控件选中时的颜色,默认使用colorAccent
colorButtonNormal 默认按钮的背景颜色
editTextColor :默认EditView输入框字体的颜色。
textColor Button,textView的文字颜色
textColorPrimaryDisableOnly RadioButton checkbox等控件的文字
textColorPrimary 应用的主要文字颜色,actionBar的标题文字默认使用该颜色
colorSwitchThumbNormal switch thumbs 默认状态的颜色. (switch off)
本文详细介绍了Android应用程序中UI颜色配置的各项参数及其用途,包括主要色调colorPrimary、暗色调colorPrimaryDark、状态栏颜色statusBarColor等,并解释了这些颜色如何应用于ActionBar、Toolbar及各类控件上。
1万+

被折叠的 条评论
为什么被折叠?



