title: wrap_content for a listview's width
body: <p>Is there a way to have a ListView with the with equal to the longest row? Setting wrap_content for the ListView 's width has no effect. The ListView covers the whole screen horizontally.</p>
  
  <p>This is the activity layout</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:orientation="vertical"&gt;
  &lt;ListView   android:id="@+id/listview"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:background="@drawable/country_picker_bg" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>and this is the row xml</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content" &gt;
  &lt;LinearLayout 
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:gravity="center_vertical"
      android:layout_marginBottom="@dimen/padding"
      android:padding="@dimen/padding"
      android:background="@drawable/white_round_rect" &gt;
      &lt;TextView android:id="@+id/title"
          style="@style/GreyTextView"
          android:layout_marginLeft="@dimen/padding"/&gt;    
      &lt;ImageView  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" 
          android:src="@drawable/orange_arrow_selector"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p> </p>
  
  <p>Thank you,
  Gratzi</p>