- normal : colorControlNormal
- checked: colorControlActivated
RadioButton
- normal : colorControlNormal
- checked: colorControlActivated
Switch
thumb
- normal : colorSwitchThumbNormal
- checked: colorControlActivated
track
- normal : colorForeground, alpha=0.3
- checked: colorControlActivated, alpha=0.3
RatingBar
- normal : colorControlNormal
- pressed: colorControlActivated
ratingbar_full_filled_material.xml
EditText
- normal : colorControlNormal
- focused: colorControlActivated
Text選択
- ハンドル : colorControlActivated
- カーソル : colorControlActivated
text_select_handle_left_material.xml
text_select_handle_middle_material.xml
text_select_handle_right_material.xml
Button
ベース
- normal : colorButtonNormal
- pressed : colorControlHighlight
btn_borderless_material.xml
ToggleButton
ベース
- normal : colorButtonNormal
- pressed : colorControlHighlight
- normal : colorControlNormal
- checked: colorControlActivated
ProgressBar
- くるくる : colorControlActivated
Horizontal
- ベース : colorControlNormal, alpha=disabledAlpha
- Progress : colorControlActivated
- SecondaryProgress : colorControlActivated, alpha=disabledAlpha
SeekBar
- ベース : colorControlNormal
- Progress : colorControlActivated
- 取手 : colorControlActivated
scrubber_control_material_anim.xml
scrubber_progress_horizontal_material.xml
Spinner
- normal : colorControlNormal
- pressed : colorControlActivated
- checked : colorControlActivated
ScrollBar
- handle : colorControlNormal
FastScroll
thumb
- normal : colorControlNormal
- pressed : colorControlActivated
track
- 常時 : colorControlNormal
TimePicker のヘッダー
- normal : colorAccent
- pressed: colorControlHighlight
ExpandableListView
- expander : colorControlNormal
selectableItemBackground
- pressed: colorControlHighlight
item_background_borderless_material.xml
■ 参考
<style name="Theme.Material">
...
<!-- Color palette -->
<item name="colorPrimaryDark">@color/primary_dark_material_dark</item>
<item name="colorPrimary">@color/primary_material_dark</item>
<item name="colorAccent">@color/accent_material_dark</item>
<item name="colorEdgeEffect">?attr/colorPrimary</item>
<item name="colorControlNormal">?attr/textColorSecondary</item>
<item name="colorControlActivated">?attr/colorAccent</item>
<item name="colorControlHighlight">@color/ripple_material_dark</item>
<item name="colorButtonNormal">@color/btn_default_material_dark</item>
<item name="colorSwitchThumbNormal">@color/switch_thumb_material_dark</item>
</style>
<style name="Theme.Material.Light" parent="Theme.Light">
...
<!-- Color palette -->
<item name="colorPrimaryDark">@color/primary_dark_material_light</item>
<item name="colorPrimary">@color/primary_material_light</item>
<item name="colorAccent">@color/accent_material_light</item>
<item name="colorControlNormal">?attr/textColorSecondary</item>
<item name="colorControlActivated">?attr/colorAccent</item>
<item name="colorControlHighlight">@color/ripple_material_light</item>
<item name="colorButtonNormal">@color/btn_default_material_light</item>
<item name="colorSwitchThumbNormal">@color/switch_thumb_material_light</item>
</style>
- support/v7/appcompat/src/android/support/v7/internal/widget/TintManager.java
- support/v7/appcompat/src/android/support/v7/internal/widget/TintDrawableWrapper.java
0 件のコメント:
コメントを投稿