ViewPager PagerAdapter未更新视图
问题: I'm using the ViewPager from the compatibility library. 我正在使用兼容性库中的ViewPager。 I have succussfully got it displaying several views which I can page through. 我已经巧妙地让它显示了几个我可以翻阅的视图。 However, I'm having a hard time figuring out how to update the ViewPager with a new set of Views. 但是,我很难弄清楚如何使用一组新视图更新ViewPager。 I've tried all sorts of things like calling mAdapter.notifyDataSetChanged() , mViewPager.invalidate() even creating a brand new adapter each time I want to use a new List of data. 我已经尝试了各种各样的事情,比如调用 mAdapter.notifyDataSetChanged() , mViewPager.invalidate() 甚至每次我想使用新的数据列表时创建一个全新的适配器。