My xml file lists items in left, what I want to change thier positions to right.I’ve tried android:layout_gravity="right", but it didn’t work!, I have also item.xml and list_item.xml.The following code is list.xml
<ScrollView android:id="@+id/edit_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="5sp"
android:paddingLeft="10sp"
android:paddingRight="15sp"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/list_descption_label"
android:gravity="left"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/list_username_label"
android:gravity="left"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/list_password_label"
android:gravity="left"
/>
</LinearLayout>
</ScrollView>
</FrameLayout>
Copy this code