title: making a linear layout horizontally scrollable
body: <p>How can I make a Linear layout horizontally scrollable? I just wrap a linear layout in myscrollview, I did what's needed in my XML file too but it still cannot scroll horizontally for contents which exceeds the linear layout size. Here is my XML: 
          
      </p>
  
  <pre><code>    &lt;ScrollView 
          android:id="@+id/scroller"
          android:layout_marginTop="16dip"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@drawable/popup"
          android:fadingEdgeLength="5dip"
          android:scrollbars="horizontal"
          android:overScrollMode="always" 
          android:isScrollContainer="true" 
          android:scrollbarAlwaysDrawHorizontalTrack="true"
          &gt;
  
          &lt;LinearLayout
              android:id="@+id/tracks"
              android:orientation="horizontal"
              android:layout_width="wrap_content"
              android:layout_height="fill_parent"
              android:layout_weight="1"
              android:padding="10dip"/&gt;
  
      &lt;/ScrollView &gt;
  
      &lt;ImageView
          android:id="@+id/arrow_up"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/arrow_up" /&gt;
  
      &lt;ImageView
          android:id="@+id/arrow_down"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@id/scroller"
          android:layout_marginTop="-4dip"
          android:src="@drawable/arrow_down" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>