刷卡活动改变Android的另一个活动,并在singleview显示多个活动? [英] swipe activity to change another activity in android and show multiple Activity in a singleview?

查看:175
本文介绍了刷卡活动改变Android的另一个活动,并在singleview显示多个活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要刷卡每个活动页面上改下一个view.How动画在android系统刷卡效果。
我怎么可以刷卡活动(MI firstquestion)

Hi i need to swipe on each activity page to change next view.How to animate a swipe effect in android. how can i swipe the activity(Mi firstquestion)

我secoundquestion
在singleview 显示多个活动?

My secoundquestion show multiple Activity in a singleview?

例如我有4个活动活动(1,2,3,4)。在屏幕上的第二活动应该在中心示出了接下来的两个活性(图2和3的活动)角表示在页面的左,右,如果他再次swiple它应该是(2,3,4)从(123)的活动。我怎样才能做到这一点
我需要的图像低于

for example I have 4 activity Activity(1,2,3,4). In screen the 2nd activity should show in the center the next two activity (2 and 3 Activity)corner shows in the left and right in the page and if he again swiple it should be (2,3,4) from(123)Activity. How can i do this the image i need is below

推荐答案

如果你有一个屏幕上的多个活动,你可能应该考虑使用片段!而非。而对于活动之间的刷卡我会用 ViewPager 片段之间滑动秒。

If you have multiple Activities on one screen you should probably consider using Fragments instead. And for Swiping between Activities I would use a ViewPager and swipe between Fragments.

http://developer.android.com/guide/components/fragments.html

http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html

http://thepseudo$c$cr.word$p$pss.com/2011/10/05/android-page-swiping-using-viewpager/

这篇关于刷卡活动改变Android的另一个活动,并在singleview显示多个活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆