Android CheckBox with right button

I'm new to Android (find it the funniest, by the way), and I was wondering ...

How can I create an Android CheckBox with a label on the left and a check button / checkbox aligned to the right (pretty much a switch on how this widget is displayed by default)? Just as the preference of the flag usually looks ...

I am looking for the most elegant / short coded version, if any. I mean, in addition to creating my own View / ViewGroup with layouts, empty labels CheckBoxes and TextViews, etc.

Thanks and respect,

+3
source share
2 answers

CheckedTextView, , ListView.

+3

CommonsWare , , , , CheckedTextView. * simple_item_list_multiple_choice *. chekcbox , ListView main.xml.

, .

+1

Source: https://habr.com/ru/post/1732763/


All Articles