0dip/weight=1 is a special case that LinearLayout can optimize. Also,
match_parent/weight=1.0 is (almost) meaningless. You are telling
LinearLayout to have this child take up all the space (match_parent)
and then fill the remaining available empty space (weight=1.0.) What
you really want is 0dip/weight=1.

On Sun, May 29, 2011 at 11:45 PM, Pradeep <[email protected]> wrote:
> Hi,
>
> I have a linearlayout and one of its element was as follows
>
> <FrameLayout android:layout_width="50px"
>                android:background="#222222" 
> android:layout_height="match_parent"
>                android:layout_weight="1.0"
>                >
>                <ListView android:layout_width="50px" 
> android:id="@+id/peoplelist"
>                android:layout_height="wrap_content"
>                >
>                </ListView>
> </FrameLayout>
>
>
> on running layoutopt on this it gave following message
>
> "Use an android:layout_height of 0dip instead of match_parent for
> better performance"
>
> How does this help in getting better performance ?
>
> Regards,
> Pradeep
>
> --
> 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
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
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