dialog.getWindow().getAttributes()
 It will  a WindowManager.LayoutParams lp;
set lp.x,lp.y,lp.height,lp.weight and lp.gravity

dialog.getWindow().setAttributes(lp)

Try this........  You can adjust dialog sie and position using
this....


On Nov 16, 2:04 am, Neilz <[email protected]> wrote:
> Pent... your layout did the trick for me. Strange thing is, I can't
> really understand why yours works and mine doesn't... that's android
> for you I guess!
>
> Thanks :-)
>
> Oh, and this time for once, layout_height="0px"; didn't work. It
> actually made it zero height.
>
> On Nov 15, 5:15 pm, Pent <[email protected]> wrote:
>
>
>
>
>
>
>
> > Here's adialogI 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 [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