Slide between activities in Android

I have 4 activities. I have to slide them right and left. If I slide on the last activity and left, the first activity should be displayed again

Anyone knows how I can do this? Or some sample code?

Thank you.

resolvent:

You can realize it through animation.. but it will be displayed as a gallery view, and you can also slide... Ontouchevent can use intent to call another activity overridependingtransition (r.anim. Act_back_slide_enter, r.anim. Act_back_slide_leave) for each activity;

//Overridependingtransition ("animation of incoming activities", "animation of outgoing activities");

I haven't tried this yet... But we can make it in this form... If you succeed, please let me know

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>