This is a Lint warning I am getting in a bunch of files.  What does it
mean?

Here's an example:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:orientation="vertical">

    <ListView android:id="@android:id/list"
                  android:layout_width="match_parent"
              android:layout_height="0px"
=====>                    android:layout_weight="1"
                          android:background="@color/list_background"
                          android:cacheColorHint="@null"
                          android:divider="@drawable/list_item_divider"
                          android:scrollbars="vertical"
                          android:fastScrollEnabled="true"/>

        <LinearLayout android:layout_width="match_parent"
                                  android:layout_height="match_parent"
                              android:layout_marginTop="-3dp"
                              android:layout_marginBottom="-2dp"
                                  android:orientation="horizontal">

                <TextView android:id="@+id/select_all_label"
                                  android:layout_width="0px"
                                  android:layout_height="wrap_content"
======>                           android:layout_weight="1"
                                  android:gravity="center_vertical|right"
                                  android:text="@string/select_all"
                                  style="@android:style/Widget.CompoundButton"/>

                <CheckBox android:id="@+id/select_all"
                                  android:layout_width="wrap_content"
                                  android:layout_height="wrap_content"
                                  android:layout_marginRight="7dp"/>
        </LinearLayout>
</LinearLayout>



I have 2 layout weights, but one is for vertical and one if for
horizontal.  How can I fix this warning, or is it completely bogus as
it doesn't take the orientation into account?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to