I'd consider going android:layout_height="0px" on the WebView. I'm not
sure what wrap_content means in this context, particularly if the
content is long.

On Mon, Nov 15, 2010 at 12:15 PM, Pent <tas...@dinglisch.net> wrote:
> Here's a dialog I have with a webview top and a button row bottom.
>
> In general I've found dialogs to be a total pain to layout.
>
> Pent
>
> <LinearLayout
>        xmlns:android="http://schemas.android.com/apk/res/android";
>        android:layout_width="fill_parent"
>        android:layout_height="fill_parent"
>        android:orientation="vertical"
>>
>        <WebView
>                android:id="@+id/webview"
>                android:layout_width="wrap_content"
>                android:layout_height="wrap_content"
>                android:layout_weight="1.0"
>                android:layout_margin="3dip"
>    />
>        <LinearLayout
>                android:layout_width="wrap_content"
>                android:layout_height="wrap_content"
>                android:orientation="horizontal"
>                android:layout_gravity="bottom"
>        >
>                <Button android:id="@+id/button_done"
>                                android:layout_width="wrap_content"
>                                android:layout_height="wrap_content"
>                                android:layout_gravity="bottom"
>                />
>                ...
>        </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 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

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

Reply via email to