title: linearlayout weight not working with vertical orientation
body: <p>I am trying to divide whole screen into 3 buttons such that each button occupies full breadth of the screen and the length of the screen is divided equally between these buttons.
  The graphical layout of the xml file is shown at <a href="http://i.stack.imgur.com/zSqVg.png" rel="nofollow">http://i.stack.imgur.com/zSqVg.png</a></p>
  
  <p>THIS XML CODE BELOW IS WORKING WHEN I USE ANDROID STUDIO. But when I use eclipse it does not work. It displays the content of fragment_main.xml.(hello world!)
  What may be the reason due to which this could be happening?
  I found that I could not use weights when linearlayout is in vertical orientation even for the simplest cases like the one shown in this example.</p>
  
  <p>The xml code for this layout is-</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:weightSum="3" &gt;
  
      &lt;Button
          android:id="@+id/btnButton1"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="1"
          android:text="button 1" /&gt;
  
      &lt;Button
          android:id="@+id/btnButton2"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="1"
          android:text="button 2" /&gt;
  
      &lt;Button
          android:id="@+id/btnButton3"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="1"
          android:text="button 3" /&gt;
  
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>But when I run the code in eclipse I get an empty screen. If I remove
  android:layout_weight="1"
  from every where in the xml file and change android:layout_height to 
  android:layout_height="40dp"
  (and removing android:weightSum="3" too) then it runs as shown in the graphical layout.</p>