title: how to have advanced list item in listview
body: <p>I want to get my list items to look like this - </p>
  
  <p><img src="https://i.stack.imgur.com/uxQoz.jpg" alt="enter image description here"></p>
  
  <p>I have a list of items that have % values associated with them. This layout looks really attractive. Can anyone tell me how can this be done?</p>
  
  <p>Here's the code I have tried - </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="wrap_content"
    android:orientation="horizontal"
    android:layout_height="wrap_content"&gt;
  
     &lt;LinearLayout
    android:layout_width="fill_parent"
    android:orientation="horizontal"
    android:background="#98F5FF"
    android:layout_height="wrap_content"
    &gt;
    &lt;/LinearLayout&gt;
  
    &lt;LinearLayout android:layout_width="fill_parent"
    android:orientation="horizontal"
    android:layout_height="wrap_content"&gt;
    &lt;TextView android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:id="@+id/text1"
    android:textSize="25dip"
    android:textColor="#FFFFFF"
    android:text="This is text1"/&gt; 
    &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>