安卓viewPager实施 [英] android viewPager implementation
问题描述
我的任务是使清洁向右滚动到另一个屏幕,然后在图标preSS并显示弹出,
我想用 ViewPager
来使清洁向右滚动(刷卡)两页之间,然后用对话框
显示弹出,
我找不到就如何落实 ViewPager
两种布局之间的任何工作的样品,
有人工作的样本?
谢谢。
大卫
My Task is to make clean scroll right to another screen then press on icon and show popup,
I want to use ViewPager
to make clean scroll right(swipe) between two pages, and then use Dialog
to show the popup,
I couldn't find any working sample on how to implement ViewPager
between two layouts,
someone has working sample??
Thanks.
David
推荐答案
这对我帮助很大:<一href="http://geekyouup.blogspot.com/2011/07/viewpager-example-from-paug.html">http://geekyouup.blogspot.com/2011/07/viewpager-example-from-paug.html
即使世界一个链接到谷歌的一些code,你可以下载和爪通过了。
Theres a link to some googlecode you can download and paw through too.
Viewpagers工作就像列表视图。要使用两种布局你将不得不扩大布局在<$ C $ C> LayoutInflater 并添加为视角的每一页中使用它。
Viewpagers work like list views. To use it with two layouts you're going to have to expand the layouts in a LayoutInflater
and add as a view to each page.
这篇关于安卓viewPager实施的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!