Create an image overlay an input view?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Create an image overlay an input view?

Postby yinglcs » Tue May 19, 2009 7:45 pm


I need to create a function which input is a reference is a view,
and the function basically creates a new View which overlay an image on top of the input view?

What is the best way to achieve that?
I am thinking of create a new ViewGroup (as my output), add the input view as a child to that ViewGroup. But how can I overlay an Image on top of the input view in the ViewGroup?

Thank you.
Junior Developer
Junior Developer
Posts: 10
Joined: Fri Nov 14, 2008 6:19 am


Postby SlumberMachine » Wed May 20, 2009 9:50 am

I have no idea how to place a widget on top of another widget(or view for that matter), but I do know that you can add a "drawing" to the textview which can be made editable as an input field. But I'm not sure if you could overlay it, it may just sit on the side, top, or bottom. But it may be something for you to look into...
Posts: 39
Joined: Tue Feb 24, 2009 9:00 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 2 guests