checkbox - How to align the checkboxes in the checkedtextView in android -
i have scrollview containing form composed multiple checkedtextview, problem check boxes of these ones not in same level, @ end of every text, want have them aligned looks form. how that? i've been searching hours nothing yet.
how have them :
blablablablablabla x blablablablablablablablablablablabla x blabla x how want them :
blablablablablabla x blablablablablablablablablablablabla x blabla x
this may solve purpose
<?xml version="1.0" encoding="utf-8"?> <scrollview xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <checkedtextview android:id="@+id/my_checkedtextview" android:layout_width="match_parent" android:layout_height="wrap_content" android:checkmark="?android:attr/listchoiceindicatormultiple" android:checked="true" android:clickable="true" android:gravity="left|center_vertical" android:hint="my text one" /> <checkedtextview android:id="@+id/my_checkedtextview" android:layout_width="match_parent" android:layout_height="wrap_content" android:checkmark="?android:attr/listchoiceindicatormultiple" android:checked="true" android:clickable="true" android:gravity="left|center_vertical" android:hint="trying larger text " /> <checkedtextview android:id="@+id/my_checkedtextview" android:layout_width="match_parent" android:layout_height="wrap_content" android:checkmark="?android:attr/listchoiceindicatormultiple" android:checked="true" android:clickable="true" android:gravity="left|center_vertical" android:hint="checked" /> <checkedtextview android:id="@+id/my_checkedtextview" android:layout_width="match_parent" android:layout_height="wrap_content" android:checkmark="?android:attr/listchoiceindicatormultiple" android:checked="true" android:clickable="true" android:gravity="left|center_vertical" android:hint="text more text" /> <checkedtextview android:id="@+id/my_checkedtextview" android:layout_width="match_parent" android:layout_height="wrap_content" android:checkmark="?android:attr/listchoiceindicatormultiple" android:checked="true" android:clickable="true" android:gravity="left|center_vertical" android:hint="checked" /> <checkedtextview android:id="@+id/my_checkedtextview" android:layout_width="match_parent" android:layout_height="wrap_content" android:checkmark="?android:attr/listchoiceindicatormultiple" android:checked="true" android:clickable="true" android:gravity="left|center_vertical" android:hint="checked" /> </linearlayout> </scrollview> also attached output.
Comments
Post a Comment