title: android - can't make my table scroll horizontally
body: <p>I am trying to make a horizontally scrollable table in android. When I enter data that exceeds the screen size the scroll bar doesn't appear. I tried all sorts of stuff (with / without the LinearLayout as a child of the HorizontalScrollView, all sorts of options for the controls width). Nothing works. Help, please.</p>
  
  <p>This is my config:</p>
  
  <pre><code>  &lt;HorizontalScrollView
      android:id="@+id/horizontalScrollView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true" &gt;
  
      &lt;LinearLayout
          android:id="@+id/linearLayout2"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:orientation="horizontal" &gt;
  
          &lt;TableLayout
              android:id="@+id/tableLayout1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" &gt;
  
              &lt;TableRow
                  android:id="@+id/tableRow1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
  
                  &lt;TextView
                      android:id="@+id/TextView01"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:padding="3dp"
                      android:text="@string/passphrase" /&gt;
  
                  &lt;Spinner
                      android:id="@+id/passphraseSpinner"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:id="@+id/tableRow2"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:padding="3dp"
                      android:text="@string/configuration" /&gt;
  
                  &lt;Spinner
                      android:id="@+id/configurationSpinner"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:id="@+id/tableRow3"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView3"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:padding="3dp"
                      android:text="@string/speaker" /&gt;
  
  
                  &lt;EditText
                      android:id="@+id/editSpeaker"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:imeOptions="actionGo"
                      android:singleLine="true"
                      android:text="@string/defaultSpeaker" /&gt;
  
              &lt;/TableRow&gt;
          &lt;/TableLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/HorizontalScrollView&gt;
  </code></pre>