Is there a way how can I set the buttonDrawable of a CheckBox to transparent ?
Setting it like this: setButtonDrawable(Color.TRANSPARENT); doesn't work. I don't remember if there was a solution converting a color as a Drawable and use it like this for example. What I've searched so far and I saw it worked is to set the Transparent Color from XML but I don't have one and I would like to do it programmatically.
you can give new ColorDrawable(Color.TRANSPARENT) a try
I tried this and it worked:
new ColorDrawable(Color.parseColor("#00ffffff"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With