I am going to use checkbox and textview in list view.I use this xml code for aligning ListView items:
<LinearLayout xmlns:android="http://ift.tt/nIICcg"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent" >
<CheckBox
android:id="@+id/checkBox1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<TextView
android:id="@+id/textView_Item_Listview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dp"
android:text="gfhfgh"
android:textSize="25sp" />
</LinearLayout>
I want align textview to right and checkbow to left.
Aucun commentaire:
Enregistrer un commentaire