title: Linear Layout with two buttons side by side - android
body: <p>I have 3 buttons the layout.xml below where they appear below of each other...</p>
  
  <pre><code>                &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:orientation="vertical"
                  android:padding="10dip" &gt;
  
                      &lt;LinearLayout
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:orientation="vertical"&gt;
  
                      &lt;Button
                          android:id="@+id/btn_1"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_weight="1"
                          android:text="Car" /&gt;
  
                      &lt;Button
                          android:id="@+id/btn_2"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_weight="1"
                          android:text="Vehicle" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:orientation="vertical" &gt;
  
                      &lt;Button
                          android:id="@+id/btn_3"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:text="Bike" /&gt;
                  &lt;/LinearLayout&gt;
              &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I would like to have the first two buttons side by side (btn_1 and btn_2). Could anybody give me a hint about how to do that???</p>
  
  <p>Thanks a lot</p>