This is my xml. I need to place my icon to extreme right. But it's not moving to extreme right. *`"tri_logo"`* I have given gravity as right. But still not moving to right. 

```
 <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/toplayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:clickable="true"
        android:orientation="vertical"    >

        <LinearLayout
            android:id="@+id/lout_profile_header"
            android:layout_width="match_parent"
            android:layout_height="@dimen/top_view_height"
            android:clickable="true"
            android:gravity="center"
            android:orientation="horizontal">

            <com.test.customviews.CircleImageView
                android:id="@+id/imgTopProfile"
                android:layout_width="@dimen/profilie_icon_size"
                android:layout_height="@dimen/profilie_icon_size"
                android:layout_margin="@dimen/hdr_img_padding"
                android:src="@mipmap/ic_profile" />

            <TextView
                android:id="@+id/textTopProfile"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_marginLeft="@dimen/hdr_name_padding" />
            <ImageView
                android:id="@+id/tri_logo"
                android:layout_width="30dp"
                android:layout_height="30dp"
                android:layout_gravity="right"
                android:src="@drawable/tri_logo"/>
        </LinearLayout>
    </LinearLayout>

```

ImageView **tri\_logo** is not moving to right.