views:

409

answers:

1

In a layout (linear, vertical) hierarchy I've got several view and one of them is a WebView. They all have same parameters:

android:layout_width="fill_parent"
android:layout_height="wrap_content"

For all views the spacing between element is correctly handled but for the Webview there is a lot of spaces after the displayed text inside.

I set the (html) text of the webview in the "onCreate" method of the activity using the layout.

Is there a way to let the webview resize itself, to match it's content size?

By the way the space left vary from one device to another (emulator vs Milestone vs Hero)

Any idea ? Thanks

A: 

It seems that at the moment the Webview only resizes itself if the content is too big. If the webview is bigger then the content it doesn't shrinks to reclaim the space.

Janusz
Right, any ideas on how to force it do resize then?
Artem Russakovskii