tags:

views:

865

answers:

1

Hi

I have a layout in which I am displaying a webview. I want to add images on top of the webview at specific places through code.

Can some one please tell me how to do that?

The translucent background example in API Demos makes the view cover the whole screen. I want to place only a small image and at a specific location (origin not 0,0)

Thanks a lot.

A: 

Have you tried putting both the WebView and the ImageView inside an Absolute Layout? This should let you specify the X/Y location of your image and by ordering make it constantly drawn over the webview.

EDIT: check out the Absolute layout: http://developer.android.com/guide/topics/ui/layout-objects.html#absolutelayout

haseman
Never heard of an X-Y layout. Are there any examples around for this layout? Thanks
lostInTransit
Sorry, XY layout is from another framework. Check out the absolute layout.
haseman