刷卡活动改变Android的另一个活动,并在singleview显示多个活动? [英] swipe activity to change another activity in android and show multiple Activity in a 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 Fragment
s instead. And for Swiping between Activities I would use a ViewPager
and swipe between Fragment
s.
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屋!