开发者

How to call a view from the view?

开发者 https://www.devze.com 2022-12-13 10:52 出处:网络
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.

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 A开发者_如何学Gondroid ?

Please share the knowledge.

Thanks in advance.


Ideally, set them up as separate activities, using BACK to move back in the stack and something in your UI to move forward.

If that is unacceptable, try ViewFlipper to switch between them.


you can use intent to move from one screen to other.

Intent i = new Intent(firstscreen.this,secondscreen.class)
startactivity(i);
0

精彩评论

暂无评论...
验证码 换一张
取 消