Anyone on this? Do I need to reformulate my question? I know it sounds
cosmetics, but since I need to display a HTML banner, the need for
accuracy is really needed? Android Googlers, your help is very
welcome ;) Regards, Édouard
--~--~-~--~~~---~--~~
You received
I think the margin is probably implemented in C code inside WebKit. I looked
at this in the past as well and couldn't find any Java options to configure
the margins.
What do you mean by accuracy? Do you mean finding the exact position of your
HTML objects inside the WebView?
On Mon, Apr 13, 2009
That was my fear, i.e. that the left and top margin be hard-coded deep
down on the C inaccessible layer ;( Thank you for taking the time. By
accuracy, I mean that I want to control the width of the total
WebView widget, so that it takes exactly 320 pixels and that the
loaded HTML inside the
There is a hack to do what you want -- make your WebView into a width of 336
-- that way you will have extra 8 pixels on each side. Then, put in
somewhere off screen (use absolute layout), and get a drawing cache from it.
That way, you can use the drawing cache bitmap, and draw that onto the real
Oh, come to think of it, (assuming you want a WebView banner at the top of
the screen) if you use AbsoluteLayout, you can put the WebView at (-8,-8).
This can get rid of the top,left, and right edge.
Then, place another View over the bottom edge of the WebView to cover that
part as well. this
5 matches
Mail list logo