views:

810

answers:

1

Hi all,

I am fairly new to Android (find it most fun, btw) and I was wondering...

How can I create an Android CheckBox with the label to the left and the checking button/box aligned to the right (pretty much a switch of the way this widget is drawn by default)? Like the way a checkbox preference normally looks like...

I am looking for the most elegant/short-coded version possible, if there is one. I mean other than creating your own View/ViewGroup with layouts, empty-labeled CheckBoxes and TextViews, etc...

Thanks & Regards,

A: 

Try CheckedTextView, which is the widget used by multiple-choice ListView widgets.

CommonsWare
Hi,Thank you for your answer. I've seen that widget in the API, but apparently I dodn't give it enough attention. I'll take a better look...Regards,
Octavian Theodor