Viewpager和列表视图 [英] Viewpager and listviews

查看:97
本文介绍了Viewpager和列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用viewpager在我的应用程序。

I'm trying to use viewpager in my app.

我要创建4视图页面与列表视图和每一个列表视图只数据将change.When应用程序开始的每一页都会加载自己的数据,但只有第一个将显示在第一时间进行。

I want to create 4 view pages with listviews and every listview only data will change.When app started every page will load own data but only first one will be shown at the first time.

但我不能这样做this.My片段刷新自己的数据在每个页面的变化,所有的列表视图总是有相同的data.Please帮我只字不提已经在计算器问这个,但没有人回答它。如果有一个来源有关,可以为您发送的链接?

But i can't do this.My fragment refresh own data every page changes and all the listviews always have same data.Please help me about this.I have asked this at stackoverflow but no one answer it.If there is a source about that can you send its link?

推荐答案

看看这个项目 https://开头github.com/Shereef/ViewPagerPlusExpandableList (导入它在Eclipse中靛蓝,还是先看看在code在网上),这是我的回答我的问题:<一href="http://stackoverflow.com/questions/7991632/how-to-implement-an-expandablelist-in-a-viewpager-in-android/8129085#8129085">How在ViewPager在Android中实现一个ExpandableList?

Take a look at this project https://github.com/Shereef/ViewPagerPlusExpandableList (import it in eclipse indigo, or take a look at the code online), this was my answer to my question: How to implement an ExpandableList in a ViewPager in Android?

应该是非常有帮助的,以你的问题,如果它不能完全解决这个问题。

Should be very helpful to your question if it doesn't fully solve it.

这篇关于Viewpager和列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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