java - Checkbox text, pushing actual checkbox to the left -
please take @ following image:

as can see, text belongs checkbox pushing corresponding checkbox left. xml simple: 1 linearlayout gravity: center, , orientation:vertical. , other views can see checkbox , button. same attributes ( width , height: wrap_content, , margin between them.
so question simple: how can make checkboxes align vertically?
@soma-web's advice sound.
another way is:
create vertical linearlayout inside linearlayout, set width wrap_content
put checkboxes inside linearlayout.
the smaller linearlayout wrap width longest checkbox, align them left. way, internal linearlayout centered, checkboxes won't be.
hope helps.
Comments
Post a Comment