Changing Default Color of Android CheckBox Check Mark

前端 未结 2 1421
Happy的楠姐
Happy的楠姐 2021-01-11 11:35

How do I change the default color of the Android checkbox from green checkmarks to blue for a particular CheckBox?

2条回答
  •  滥情空心
    2021-01-11 12:33

    This is easy to do in xml using buttonTint (as of API level 23):

    
    

    and as Nicolás pointed out, you can do this using appCompatCheckbox v7 for older APIs:

     
    

提交回复
热议问题