cpoopc / ScrollableLayout

共同头部+ViewPager+ListView http://blog.csdn.net/w7822938/article/details/47173047
MIT License
783 stars 161 forks source link

ScrollableLayout下viewpager里面如果有listview,滑动顶上去后,无法下拉显示头部 #16

Open hloong opened 7 years ago

hloong commented 7 years ago

ScrollableLayout下viewpager里面如果有listview,滑动顶上去后,无法下拉显示头部

lalozhang commented 7 years ago

解决了么?

hloong commented 7 years ago

没有,换了另外一种做法

JasonBtc commented 6 years ago

@hloong 请问用了什么其他方法?

azhu003 commented 6 years ago

我也遇到这个问题了 请问下怎么解决的呢

langyazhouwl commented 6 years ago

增加一下 这几行代码 貌似可以 viewpager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { @Override public void onPageSelected(int position) { indicator.setCurrentItem(position); ScrollAbleFragment fragment = getCurrentFragment(); if (fragment != null) { scrollableLayout.getRefreshableView() .getHelper() .setCurrentScrollableContainer(fragment); } } });