Hi all. No matter how my experience with Android grows, I still get perplexed by layouts! Sometimes they just won't do what I want. So over to you...
The layout below is for a dialog, which contains a WebView and a Button, laid out vertically. When the text going into the WebView is long enough, it fills the whole dialog window, and the Button gets squashed into almost nothing. I've tried ScrollViews, I've tried a minimum height on the Button, a maximum height on the WebView, all to no avail. How can I keep the button area fixed in height, while the webview scrolls if the text is long enough? Many thanks for any help. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:id="@+id/help_frame" android:orientation="vertical" android:layout_height="wrap_content" android:layout_width="wrap_content" android:paddingLeft="10dip" android:paddingRight="10dip" android:gravity="center" android:layout_gravity="center" > <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxHeight="150dip" android:paddingTop="10dip" android:paddingBottom="10dip" android:gravity="center" > <WebView android:id="@+id/help_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxHeight="150dip" android:scrollbars="" /> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="50dip" android:paddingTop="10dip" android:gravity="center" > <Button android:id="@+id/help_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" android:paddingLeft="30dp" android:paddingRight="30dp" android:text="ok"/> </LinearLayout> </LinearLayout> -- 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

