[英]How can I set different adapter for ViewPager ?
I read this tutorial 我读了这个教程
http://blog.stylingandroid.com/archives/542 http://blog.stylingandroid.com/archives/542
There are 3 pages in ViewPager and they have the same data in ListView. ViewPager中有3个页面,它们在ListView中具有相同的数据。
How can I make each page has different adapter ? 如何让每个页面都有不同的适配器?
如果您正在关注该博客文章中的代码,请在instantiateItem()
,根据提供的position
为每个页面创建不同的适配器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.