Possible Duplicate:
How to show android checkbox at right side?
In my android application, I have a checkbox and some text associate with it. By default the texts are in the right side and the checkbox in left side. But I want to put the checkbox on the right side. Help me please.
Very easy. Do it in an elegant way:
android:button="@null"
android:drawableRight="@drawable/YOUR_CHECKBOX_BUTTON"
Perfectly solve your problem.
If you want to put the text under your button, set android:drawableTop
.
I dont know whether it is possible or not by styling ,
But here is a solution for you
Use ""
as the value of the CheckBox
,then add a TextView
to the left of the CheckBox
with your desired text.
You can do so by:
Thanks.
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