我的任务是使清洁向右滚动到另一个屏幕,然后在图标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
推荐答案
这对我帮助很大: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工作就像列表视图。要使用两种布局你将不得不扩大布局在 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.
相关推荐
最新文章