I am trying to right align a spinner in a 2 column table in Android.
This is what I have tried so far:
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/object_background">
<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Test"/>
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:gravity="right"/>
</TableRow>