title: Custom Single choice ListView
body: <p>I want to make a custom List View having Two TextViews and a radio Button in a single row. And on listitem click the radio button state should be toggle. I cannot use Simple Adapter here.</p>
  
  <p>I have already asked that question <a href="https://stackoverflow.com/questions/8295026/single-choice-listview-custom-row-layout">Single choice ListView custom Row Layout</a> but don't find any satisfactory solution.</p>
  
  <p>What I am currently doing is I am using simple_list_item_single_choice and putting data of both TextViews in a single one separated by some white spaces. But here it is getting worse (shown in the image below).</p>
  
  <p><img src="https://i.stack.imgur.com/49M4f.png" alt="http://db.tt/ulP6pn7V"></p>
  
  <p>What I want is to fix the location of size and price and make list view as single choice.</p>
  
  <p>XML Layout for the list can be something like:</p>
  
  <pre><code>**&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/layout"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:gravity="center_horizontal"
      android:orientation="horizontal" &gt;
  
      &lt;TextView
          android:id="@+id/tv_size"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="TextView"
          android:textSize="15sp"
          android:width="200dp" /&gt;
  
      &lt;TextView
          android:id="@+id/tv_price"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="TextView"
          android:textSize="15sp"
          android:width="70dp" /&gt;
  
      &lt;RadioButton
          android:id="@+id/radioButton"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;
  
  &lt;/LinearLayout&gt;**
  </code></pre>
  
  <p>How to make custom adapter for that?</p>