title: Implementing horizontalList inside a vertical list in android
body: <p>I have made a custom Horizontal List view which works fine. I then implemented the same horizontal list inside a ListView control. But when I run the same, all I get is a blank output. The list does not seem to poupulate. </p>
  
  <p>On debugging I found, that the adapter which was added to the list view contain the items(Horizontal lists).</p>
  
  <p>So, the problem is clearly not of items not populating properly, its of the view not rendered properly.</p>
  
  <p>Here is the code for vertical list view:</p>
  
  <p>XML:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;com.example.twowaylistview.HorizontalListView
          android:id="@+id/lstHor"
          android:layout_height="100dp"
          android:layout_width="fill_parent"&gt;
      &lt;/com.example.twowaylistview.HorizontalListView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and here is XML for individual item in the horizontal list</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent" android:layout_height="100dp"&gt;
  
      &lt;ImageView
          android:id="@+id/imgListItem"
          android:layout_height="85dp"
          android:layout_width="85dp"
        ..            /&gt;
  
     ...
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>let me know if you need the java code. Thanks.</p>