Hi All, here is a layout. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical">
<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="@drawable/white" android:layout_weight="1" > </LinearLayout> <EditText android:layout_width="wrap_content" android:layout_height="wrap_content"> </EditText> </LinearLayout> It confused me much that the inner LinearLayout occupys all the space of the outer LinearLayout and the EditText can not be seen, unless I set android:layout_weight="1" to the inner LinearLayout or chenge the outer LinearLayout to wrap_content. Why a fill_parent LinearLayout in another fill_parent LinearLayout will occupy all the space of the outer one? It is also confusing that set android:layout_weight="1" can make it work. I think layout_weight should not behave like this accroding to the doc. Any idea? Any help would be highly appriciated. (*^__^*) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---