[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread elDoudou
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

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread Mattaku Betsujin
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

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread elDoudou
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

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread Mattaku Betsujin
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

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread Mattaku Betsujin
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