title: Android Grid with LinearLayout
body: <p>I'm trying to build a grid with some linear layouts.
  Unfortunately the buttons inside the "grid" fill all the space and the "grid" isn't always the same size.</p>
  
  <pre><code>&lt;ScrollView 
   xmlns:tools="http://schemas.android.com/tools"
   xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="wrap_content"
    android:id="@+id/scrollView1"
    android:layout_width="fill_parent"
    android:layout_weight="1"&gt; 
  &lt;LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:gravity="center_horizontal"
    android:orientation="vertical" &gt;
  
    &lt;ImageView
    android:id="@+id/imageView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/banner" 
    android:background="#80000000"
    android:contentDescription="@string/about"/&gt;
  
    &lt;LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"&gt;
     &lt;TextView
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:layout_weight="1"
     android:layout_marginTop="15dp"
     android:gravity="center_horizontal"
     android:text="@string/modi1"
     tools:context=".MenuActivity" /&gt;
     &lt;TextView
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:layout_weight="1"
     android:layout_marginTop="15dp"
     android:gravity="center_horizontal"
     android:text="@string/modi2"
     tools:context=".MenuActivity" /&gt;
     &lt;/LinearLayout&gt;
  
     &lt;LinearLayout     
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"&gt;
      &lt;Button
      android:layout_marginTop="10dp"
      android:id="@+id/button1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:gravity="center"
      android:text="@string/szen_diagramm" /&gt;
      &lt;Button
      android:layout_marginTop="10dp"
      android:id="@+id/button2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:gravity="center"          
      android:text="@string/szen_countdown" /&gt;
     &lt;/LinearLayout&gt;
      &lt;Button
      android:layout_marginTop="10dp"
      android:id="@+id/button1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:gravity="center"
      android:text="@string/szen_diagramm" /&gt;
      &lt;Button
      android:layout_marginTop="10dp"
      android:id="@+id/button2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:gravity="center"          
      android:text="@string/szen_countdown" /&gt;
     &lt;/LinearLayout&gt;
      &lt;Button
      android:layout_marginTop="10dp"
      android:id="@+id/button1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:gravity="center"
      android:text="@string/szen_diagramm" /&gt;
      &lt;Button
      android:layout_marginTop="10dp"
      android:id="@+id/button2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:gravity="center"          
      android:text="@string/szen_countdown" /&gt;
     &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>It should look something like 
  <a href="https://www.dropbox.com/s/23nzqf3m939bq0j/Screenshot.png" rel="nofollow">this</a>
  with the buttons centered and at the size they need with the text inside.</p>
  
  <p>Could anyone help me?</p>