Overlapping things in Android is pretty trivial. For example, when you
put multiple children in a FrameLayout, they are all shown on top of
each other as per the documentation:
http://developer.android.com/reference/android/widget/FrameLayout.html

Another method is the Toast utility for showing text messages on top
of everything else:
http://developer.android.com/reference/android/widget/Toast.html

And of course dialogs are another way to show a window of content on
top of another screen:
http://developer.android.com/guide/topics/ui/dialogs.html

It isn't far enough along that I've put any effort into cleaning up
the code/XML, but you can see the FrameLayout method being used to
compose layers of a character and controls here:
http://code.google.com/p/growing-phone-pet/source/browse/trunk/res/layout/show_pet.xml

There's a FrameLayout there explicitly, but the PetView that is
composing the different images that make up the scenery and character
is also a subclass of FrameLayout.

On Jun 4, 12:10 am, EwanG <[email protected]> wrote:
> OK, so... question was too broad? No such examples exist? No one here
> who would be interested in such a thing if it were written? :-)
>
> On May 30, 10:04 pm, EwanG <[email protected]> wrote:
>
> > I am looking for an example of how to setup a screen with a
> > background, an overlay image (my character), and over that a frame
> > that sometimes has text, and sometimes has menu options.
>
> > To make myself clearer, as I suggest in the title I'm trying to create
> > aVisualNovelfor Android. Something like I've done in Flash and
> > using RenPy, but with mobile sensibilities (make the buttons more
> > touch friendly, use the accelerator for certain inputs, etc).
>
> > Any good, publicly available source code I should check out? I have
> > written one previous Android Program (Mars Lander which I gather is
> > still floating about), but this is different enough I think I need a
> > bit of help.
>
> > Thanks in advance!
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to