Using a ViewFlipper is a good idea.

What you can do is,

1. In the main xml file, only have the view flipper. With no children.
2. The children in the view flipper will be populated at runtime.
3. Now create as many view xmls as the number of screens you want.
4. For each xml, create a class, which initializes/inflates these
xmls, with any actions or listeners on the view objects.
5. In each of this class, write a public method, which returns the
initialized view.
6. Set these views to the View Flipper as children.
7. Handle transitions of the View Flipper, through code.

This is fairly simple to do, and you can also manage your code this
way. But, Since, at runtime you will be creating so many views, you
also might need to do some memory management.

Thanks and Regards,
Kumar Bibek

http://tech-droid.blogspot.com

On Dec 10, 3:08 pm, Sierra Bravo <[email protected]> wrote:
> Not an expert, but I don't think Android works through 'screens'. What
> you may want to try out is to create as many activities  as you have
> "screens", attach the UI elements to each activity, and transition
> from activity to activity in your preferred order (thereby bringing up
> the respective "screens").
>
> sb
>
> On Dec 10, 9:12 am, 1 tug b <[email protected]> wrote:
>
> > Hi Guys.
> > I've tried ViewFlipper. But it is not better idea. Because it is very hard
> > coding. All screens are placed in main.xml.
>
> > Can you recommend any better idea ?
>
> > Thanks in advance.
>
> > On Wed, Dec 9, 2009 at 8:31 PM, RaidenDroid <[email protected]> wrote:
> > > Hi guys.
>
> > > I am a new developer for Android. I wanna know about View transitions.
>
> > > For my application, it has 5 screens that can shift each other.
>
> > > In order word, Screen1 -> Screen2 <--> Screen3 <--> Screen4 ->
> > > Screen5.
>
> > > How to make this screen transition on Android ?
>
> > > Please share the knowledge.
>
> > > 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