title: Android layout auto height
body: <p>I'm have some troubles with layout height</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;LinearLayout
  android:layout_width="match_parent"
  android:layout_height="0dip"
  android:layout_weight="1"
  android:orientation="horizontal"
  android:paddingBottom="2dp"
  android:paddingLeft="5dip"
  android:paddingTop="2dp" &gt;
  
  &lt;TextView
      android:id="@+id/calendar_name_label"
      style="@style/event_detail_label"
      android:text="@string/calendar_name_label" /&gt;
  
  &lt;LinearLayout
      android:id="@+id/calendars_place_holder"
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>calendars_place_holder is layout where is store text views,</p>
  
  <p>and the whole layout is high as there is only one text view in calendars_place_holder where as there are 3 or 4,</p>
  
  <p>Can I have some advices ?</p>
  
  <p>Thanks in advance</p>