0

i want to change the checkbox color (white inside box) which currently look likes this current , which should be like this. desired description here

kenji
  • 73
  • 1
  • 11
  • 1
    make it custom and use selector – Aditya Vyas-Lakhan Aug 16 '17 at 10:18
  • You can create a custom selector and then apply for your checkbox like this [https://stackoverflow.com/questions/31183713/android-replace-checkbox-style-with-custom-drawable-selector](https://stackoverflow.com/questions/31183713/android-replace-checkbox-style-with-custom-drawable-selector) – No Em Aug 16 '17 at 10:19
  • 1
    Possible duplicate of [How to change the color of a CheckBox?](https://stackoverflow.com/questions/5854047/how-to-change-the-color-of-a-checkbox) – Lincoln White Aug 16 '17 at 10:19

2 Answers2

0

Add your required image in drawable

and add below property in .xml file

android:button="@drawable/img"

Where img is your required background

Anil
  • 1,605
  • 1
  • 14
  • 24
0

enter image description here

Add below line to your CheckBox's XML code

  android:button="@android:drawable/checkbox_off_background"
Danger
  • 433
  • 5
  • 17