I don't know about defaults because every view in a layout needs to
have its height and width specified.

I have also put a WebView in a RelativeLayout that fills its parent,
and set the WebView's four sides to align to the parent's edges.  I
have also made a WebView fill a FrameLayout that also fills its
parent.

On Aug 2, 9:57 pm, Ken <ken0624...@gmail.com> wrote:
> Tried that - didn't work. I thought the default behavior of WebView is
> fit to screen (width), no?
>
> Thanks.
>
> On Aug 2, 4:53 pm, Doug <beafd...@gmail.com> wrote:
>
> > You might want to have height and width of the WebView itself fill the
> > parent, and don't bother using a LinearLayout if it contains just one
> > child view.
>
> > On Aug 2, 11:40 am, Ken <ken0624...@gmail.com> wrote:
>
> > > anyone?
>
> > > On Jul 30, 3:10 pm, Ken <ken0624...@gmail.com> wrote:
>
> > > > Hi,
>
> > > > When I load a URL in my webview, the page always appears with full
> > > > size and I am unable to zoom out (I did call
> > > > setBuiltInZoomControls(true)). The webview is wrapped in a
> > > > LinearLayout with fill_parent for both dimensions.
>
> > > > Is there a simple way to fit the content of the webview automatically
> > > > to the screen? Thanks!
>
> > > > Ken
>
>

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