title: Android. Layout item move to right side
body: <p>I have android layout with three parts (imageview, textview, imageview) and I want the last part move to right side, now its near the second element.</p>
  
  <p>My code:</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/menu_button_bg"
      android:orientation="horizontal"
      android:paddingLeft="13dp" &gt;
  
      &lt;ImageView
          android:id="@+id/menuItemIcon"
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:layout_marginBottom="13dp"
          android:layout_marginRight="13dp"
          android:layout_marginTop="13dp"
          android:contentDescription="@string/menuItemDesc"
          android:gravity="center_vertical" /&gt;
  
      &lt;TextView
          android:id="@+id/menuItemTitle"
          android:layout_width="wrap_content"
          android:layout_height="70dp"
          android:gravity="center_vertical"
          android:textSize="16sp" &gt;
      &lt;/TextView&gt;
  
      &lt;ImageView
          android:id="@+id/menuItemIconRight"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginBottom="13dp"
          android:layout_marginRight="13dp"
          android:layout_marginTop="13dp"
          android:layout_weight="0.1"
          android:contentDescription="@string/menuItemDesc"
          android:gravity="right" /&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>