colorAccent,colorPrimary,colorPrimaryDark
純粹是個人學習總結,如有不對的地方請吐槽。
直接上圖
image.png
1.colorPrimary 應用的主要色調,actionBar預設使用該顏色,Toolbar導航欄的底色
2.colorPrimaryDark 應用的主要暗色調,statusBarColor預設使用該顏色
3.statusBarColor 狀態列顏色,預設使用colorPrimaryDark
4.windowBackground 視窗背景顏色
5.navigationBarColor 底部欄顏色
6.colorForeground 應用的前景色,ListView的分割線,switch滑動區預設使用該顏色
7.colorBackground 應用的背景色,popMenu的背景預設使用該顏色
8.colorAccent CheckBox,RadioButton,SwitchCompat等一般控制元件的選中效果預設採用該顏色
9.colorControlNormal CheckBox,RadioButton,SwitchCompat等預設狀態的顏色。
10.colorControlHighlight 控制元件按壓時的色調
11.colorControlActivated 控制元件選中時的顏色,預設使用colorAccent
12.colorButtonNormal 預設按鈕的背景顏色
13.editTextColor:預設EditView輸入框字型的顏色。
14.textColor Button,textView的文字顏色
15.textColorPrimaryDisableOnly RadioButton checkbox等控制元件的文字
16.textColorPrimary 應用的主要文字顏色,actionBar的標題文字預設使用該顏色
17.colorSwitchThumbNormal: switch thumbs 預設狀態的顏色. (switch off)
原文地址:http://www.aoaoyi.com/archives/623.html