title: how to use 50% width and height in android linear layout
body: <p>I want to create android kind of layout like this : </p>
  
  <p><a href="https://i.stack.imgur.com/l7stu.png" rel="nofollow noreferrer">IMAGE</a></p>
  
  <p>I created same this with relative layout but I can't place second container with 50% width and height.</p>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:fillViewport="true"&gt;
  
  
      &lt;android.support.constraint.ConstraintLayout 
          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="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="horizontal"
              android:weightSum="100"&gt;
  
              &lt;ImageView
                  android:layout_margin="5dp"
                  android:layout_width="0dp"
                  android:layout_weight="50"
                  android:adjustViewBounds="true"
                  android:layout_height="wrap_content"
                  android:src="@drawable/akhbar"
                  android:id="@+id/akhbar_panel" /&gt;
  
              &lt;ImageView
                  android:id="@+id/amozesh_panel"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_margin="5dp"
                  android:layout_weight="50"
                  android:adjustViewBounds="true"
                  android:src="@drawable/amozesh" /&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/android.support.constraint.ConstraintLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>