title: Android 2 Image view with half display in left side and half display in right side
body: <p>I am drawing a Linear layout in Android to display 2 images with half image in left side and half image.</p>
  
  <p>I draw like this :</p>
  
  <p><img src="https://i.stack.imgur.com/wox8x.png" alt="enter image description here"></p>
  
  <p>but I want to draw like below, can you please help me to draw the image like below.</p>
  
  <p><img src="https://i.stack.imgur.com/BnOoh.png" alt="enter image description here"></p>
  
  <p>My layout file is here:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  &lt;LinearLayout
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="10dp"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="0dp"
          android:layout_weight="1.5" &gt;
  
          &lt;ImageView
              android:id="@+id/sideLeft"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="1.5"
              android:layout_marginBottom="10dp"
              android:background="@drawable/user"
              android:scaleType="centerCrop" /&gt;
  
          &lt;ImageView
              android:id="@+id/sideRight"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_marginLeft="1dp"
              android:layout_weight="1.5"
              android:layout_marginBottom="10dp"
              android:background="@drawable/user"
              android:scaleType="centerCrop" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>That will look like a 1 image.</p>
  
  <p>Thanks In Advance!</p>