layout_width and layout_weight - performance
<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="60dip"
    android:orientation="horizontal"
    android:background="#80939393"
    android:gravity="center_vertical"
     &gt;

    &lt;CheckBox
        android:id="@+id/column1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="0" /&gt;


    &lt;View android:layout_height="fill_parent"
    android:layout_width="1dp"
    android:background="#90909090"/&gt;


    &lt;TextView
        android:id="@+id/column2"
        android:layout_width="30dip"
        android:layout_height="wrap_content"
        android:layout_weight="0"
        android:gravity="center"
        android:text="@string/column_title_2" /&gt;

    &lt;View android:layout_height="fill_parent"
    android:layout_width="1dp"
    android:background="#90909090"/&gt;

    &lt;LinearLayout
        android:layout_width="70dip"
        android:layout_height="match_parent"
        android:orientation="horizontal"
        android:layout_weight="1"
        android:clickable="true"
        android:gravity="center_vertical"
        android:id="@+id/column3_container" &gt;
        &lt;TextView
            android:id="@+id/column3"
            android:layout_width="50dip"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="left"
            android:paddingLeft="8dp"
            android:text="@string/column_title_3" /&gt;
        &lt;TextView
            android:id="@+id/sort_column_3"
            android:layout_width="20dip"
            android:layout_height="wrap_content"
            android:layout_weight="0"
            android:gravity="center"
            android:textSize="24dp"
            android:paddingRight="8dp"
            android:text="@string/solid_up" /&gt;
    &lt;/LinearLayout&gt;


    &lt;View android:layout_height="fill_parent"
    android:layout_width="1dp"
    android:background="#90909090"/&gt;


    &lt;LinearLayout
        android:layout_width="70dip"
        android:layout_height="match_parent"
        android:orientation="horizontal"
        android:layout_weight="1"
        android:clickable="true"
        android:gravity="center_vertical"
        android:id="@+id/column4_container" &gt;
        &lt;TextView
            android:id="@+id/column4"
            android:layout_width="50dip"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="left"
            android:paddingLeft="8dp"
            android:text="@string/column_title_4" /&gt;
        &lt;TextView
            android:id="@+id/sort_column_4"
            android:layout_width="20dip"
            android:layout_height="wrap_content"
            android:layout_weight="0"
            android:gravity="center"
            android:textSize="24dp"
            android:paddingRight="8dp"
            android:text="" /&gt;
    &lt;/LinearLayout&gt;


    &lt;View android:layout_height="fill_parent"
    android:layout_width="1dp"
    android:background="#90909090"/&gt;


    &lt;LinearLayout
        android:layout_width="70dip"
        android:layout_height="match_parent"
        android:orientation="horizontal"
        android:layout_weight="1"
        android:clickable="true"
        android:gravity="center_vertical"
        android:id="@+id/column5_container" &gt;
        &lt;TextView
            android:id="@+id/column5"
            android:layout_width="50dip"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="left"
            android:paddingLeft="8dp"
            android:text="@string/column_title_5" /&gt;
        &lt;TextView
            android:id="@+id/sort_column_5"
            android:layout_width="20dip"
            android:layout_height="wrap_content"
            android:layout_weight="0"
            android:gravity="center"
            android:textSize="24dp"
            android:paddingRight="8dp"
            android:text="" /&gt;
    &lt;/LinearLayout&gt;


    &lt;View android:layout_height="fill_parent"
    android:layout_width="1dp"
    android:background="#90909090"/&gt;


    &lt;TextView
        android:id="@+id/column6"
        android:layout_width="50dip"
        android:layout_height="wrap_content"
        android:layout_weight="0"
        android:gravity="center"
        android:text="@string/column_title_6" /&gt;

&lt;/LinearLayout&gt;
    &lt;View android:layout_height="1dp"
    android:layout_width="fill_parent"
    android:background="#90909090"/&gt;
    &lt;ListView
        android:id="@+id/mylist"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:choiceMode="multipleChoice"&gt;
    &lt;/ListView&gt;
    &lt;View android:layout_height="1dp"
    android:layout_width="fill_parent"
    android:background="#90909090"/&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>I am getting two warnings in my eclipse over performance. </p>

<p><code>Nested weights are bad for performance</code> when using <code>android:layout_weight="1"</code> <strong>and</strong> <code>Use a layout_width of 0dip instead of 50dip for better performance</code></p>

<p>Can anyone say me why its throwing this error?</p>
