Android LinearLayout Alignment to right
<p>Pleae have a look at the following XML</p>

<p>i want image Aligning to the Right before text</p>

<p><a href="https://i.stack.imgur.com/Mbwur.png" rel="nofollow noreferrer">please look to this image</a></p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/list_selector"
android:orientation="horizontal"
android:padding="6dp" &gt;

&lt;LinearLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center_vertical"
    android:background="@drawable/rounded_corner"
    android:orientation="vertical" &gt;

    &lt;ImageView
        android:id="@+id/image_category"
        android:layout_width="72dp"
        android:layout_height="72dp"
        android:contentDescription="@string/app_name"
        android:padding="0dp"
        android:src="@drawable/ic_launcher" /&gt;
&lt;/LinearLayout&gt;

&lt;LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center_vertical"
    android:layout_marginLeft="8dp"
    android:orientation="vertical" &gt;

    &lt;TextView
        android:id="@+id/txt_allphotos_categty"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="2dp"
        android:layout_marginRight="2dp"
        android:text=""
        android:textColor="@color/texthoverclr"
        android:gravity="right"
        android:textSize="20sp" /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p></p>

<p>i want align the photo to right then text after it to right</p>