I have this horizontal Layout in a vertical Layout. Inside my horizontal Layout I have to views (Spinners) which I want to be displayed right to left.
The top image is what I'm getting right now. The bottom is what I expect. Very simple.
I've been trying changing all attributes. Nothing seems to work. Changed gravity, layout_gravity...
And because I'm willing to use weight I can't use RelativeLayouts.
How should I fix this? Is there any solution that does not end up in messing with the arrangement and order of my XML and putting the first control after the 2nd one (I hate that)?
Is there something obvious that I don't know or am missing? Thanks a lot in advance.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/tb3TxtPrice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_margin="20dp"
android:text="price"
android:textAppearance="?android:attr/textAppearanceMedium"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginRight="20dp"
android:layout_marginLeft="20dp"
android:orientation="horizontal">
<Spinner
android:id="@+id/tb3SprPriceStartLimit"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_gravity="right"
android:entries="@array/priceStartLimitArray" />
<Spinner
android:id="@+id/tb3SprPriceEndLimit"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_gravity="right"
android:entries="@array/priceEndLimitArray" />
</LinearLayout>