开发者

android Can viewFlipper have activitys instead of layout

开发者 https://www.devze.com 2023-03-19 04:33 出处:网络
I have 3 Activity\'s that i like to put into a ViewFlipper configuration. Right now i have big trouble going from ac开发者_如何学Pythontivity 1-2-3 and back.

I have 3 Activity's that i like to put into a ViewFlipper configuration.

Right now i have big trouble going from ac开发者_如何学Pythontivity 1-2-3 and back.

what is the best approach to do this?

Any help would be grate?


No, ViewFlipper can not contain Activities. Your best bet would be to just use a custom Animation to perform the transition between each Activity: see Can I change the Android startActivity() transition animation? for a decent example. To go back call finish() in each Activity to end it.

EDIT: you want a TabActivity. You can hide the TabWidget and then swipe to switch between tabs.

0

精彩评论

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