Hi all, I have LinearLayout with four item orientated vertically and with set LayoutWidth = 1.0 to fill the whole screen. Here is the source i removed most of the code which is not related to the issue -
<LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1.0" android:orientation="vertical"> <!-- Item 1 --> <RelativeLayout android:layout_width="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:layout_weight="1.0"/> <!-- Item 2 --> <RelativeLayout android:layout_width="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:layout_weight="1.0"/> <!-- Item 3 --> <RelativeLayout android:layout_width="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:layout_weight="1.0"/> <!-- Item 4 --> <RelativeLayout android:layout_width="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:layout_weight="1.0"/> </LinearLayout> Everything is working fine here. But when i add ScrollView to wrap the LinearLayout layout_weight seems to stop working and the items are not fit to display height - <ScrollView android:layout_width="wrap_content" android:layout_height="wrap_content"> <LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1.0" android:orientation="vertical"> <!-- Item 1 --> <!-- Item 2 --> <!-- Item 3 --> <!-- Item 4 --> </LinearLayout> </ScrollView> I want to add the scroll in cases when display is very short and set minHeight atribute to each item and scroll :) So any ideas -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en