florent37 / MaterialViewPager

A Material Design ViewPager easy to use library
https://www.fiches-plateau-moto.fr
Apache License 2.0
8.13k stars 1.48k forks source link

MaterialViewPager with SwipeToRefreshView in fragment #112

Open zimiole opened 9 years ago

zimiole commented 9 years ago

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

florent37 commented 9 years ago

what's your code after receiving articles from webservice ?

zimiole commented 9 years ago

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 commented 9 years ago

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

darrenxyli commented 8 years ago

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

zimiole commented 8 years ago

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

rushyaa commented 7 years ago

how did you add contents in tabs??