Monday, September 6, 2010

[android-developers] Multiple Activites That Share 75% of a Layout...Layouts Within Layouts?

Hi there,

This one's a bit hard to put into words, with my limited understanding
of what I'm asking about, so, please bear with me! :)

I'm creating a game where there's a screen that, for the most part, is
shared by four different activites - but a key portion of the screen
will be completely different, depending upon which activity is active.
Basically, on the left will be an image of the player and along the
bottom there will be a row of buttons (let's say for Armour, Weapons,
Magic, Skills). This leaves the top-right portion, which will need to
dynamically change to represent the button pressed. (So, one moment
the top-right portion is the armour selection activity, and the next
it's the weapon selection activity, and so on.)

Is this possible? Can I have a layout within a layout and dynamically
point the nested layout at a (nested) layout.xml of my choosing? Or,
am I looking at just duplicating most of the layout four times (for
the four different activities?)

Or, am I going to be looking at linking the four activities to a (the
top-right) view component, and then having to dynamically construct
all of *that* view's child views based on the currently active
activity?

Well, that's about as much sense as I can make this question make.

If you choose to try and help me, then GOOD LUCK, and many thanks :)

Cheers,
James

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate