How I can hide checkbox box only, but not checkbox text in .
Checkbox
is created programmatically.
myCheckBox.setVisibility(View.GONE)
hides the whole checkbox with text also included. I would like to show only text but not box icon.
Looking forward to hear from you soon.
This works for me:
Drawable transparentDrawable = new ColorDrawable(Color.TRANSPARENT);
myCheckBox.setButtonDrawable(transparentDrawable);
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