title: how to create imageview half of screen in xml
body: <p>i want to show image view half of screen and rest of screen i will show multiple textview like this</p>
  
  <blockquote>
    <p><img src="https://i.stack.imgur.com/MZNZI.png" alt="enter image description here"></p>
  </blockquote>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
       android:layout_width="fill_parent"
       android:layout_height="?android:attr/listPreferredItemHeight"
  
       android:padding="6dip"&gt;
  
       &lt;ImageView
          android:id="@+id/icon"
  
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
  
          android:layout_alignParentTop="true"
          android:layout_alignParentBottom="true"
          android:layout_marginRight="6dip"
  
          android:src="@drawable/icon" /&gt;
  
      &lt;TextView  
          android:id="@+id/secondLine"
  
          android:layout_width="fill_parent"
          android:layout_height="26dip" 
  
          android:layout_toRightOf="@id/icon"
          android:layout_alignParentBottom="true"
          android:layout_alignParentRight="true"
  
          android:singleLine="true"
          android:ellipsize="marquee"
          android:text="Simple application that shows how to use RelativeLayout" /&gt;
  
       &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
  
          android:layout_toRightOf="@id/icon"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:layout_above="@id/secondLine"
          android:layout_alignWithParentIfMissing="true"
  
          android:gravity="center_vertical"
          android:text="My Application" /&gt;
  
       &lt;/RelativeLayout&gt;
  </code></pre>