MaterialViewPager icon indicating copy to clipboard operation
MaterialViewPager copied to clipboard

MaterialViewPager with SwipeToRefreshView in fragment

Open zimiole opened this issue 9 years ago • 6 comments

When you have fragment with swipetorefresh and recycleview, main layout view looks like don't have action bar and all these cool features. screenshot_2015-07-22-17-01-14 screenshot_2015-07-22-17-01-18

zimiole avatar Jul 22 '15 14:07 zimiole

what's your code after receiving articles from webservice ?

florent37 avatar Jul 22 '15 14:07 florent37

if simplify: fragment onCreateView:

  1. init swipeRefreshLayout
  2. init recyclerView
  3. create adapter and fill it with loaded data
  4. register RecyclerView with MaterialViewPagerHelper

So, after I took data from web sebservice i fill my adapter with new data and register recyclerview

zimiole avatar Jul 22 '15 14:07 zimiole

UPD: I have the same issue with CollapsingToolbarLayout witch include TabLayout and Toolbar, and it's fixed when I put all into CoordinatorLayout and add app:layout_behavior="@string/appbar_scrolling_view_behavior" to viewpager

zimiole avatar Jul 22 '15 14:07 zimiole

@zimiole Hi man, have you fixed the problem? I have meet the same situation, no idea how to deal with it.

darrenxyli avatar Feb 19 '16 18:02 darrenxyli

@darrenxyli hi! no, I found another solution - do not use materialviewpager.

zimiole avatar Feb 22 '16 12:02 zimiole

how did you add contents in tabs??

rushyaa avatar Feb 26 '17 20:02 rushyaa