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

Expandable recycler view causing scroll problems #84

Open Mark-William-Schumacher opened 9 years ago

Mark-William-Schumacher commented 9 years ago

I have a expandable recycler view , which opens up a new view group underneath the clicked view. I am having issues with the material view pager's header becoming collapsed and then not people able to expand again. This issue occurs when collapsing the bottom most child of the recycler view and having the material view pagers header in a collapsed state. The material viewpager's header now becomes unexpandable through scrolling to the top.

Is there any way I can force the material view pagers header to become expanded once getting to the top of my recycler view?

florent37 commented 9 years ago

I thinks you have to write your own adapter, instead of using the RecyclerViewMaterialAdapter

Just inflate a R.layout.material_view_pager_placeholder in the 0 position, like the true Adapter

https://github.com/florent37/MaterialViewPager/blob/master/materialviewpager/src/main/java/com/github/florent37/materialviewpager/adapter/RecyclerViewMaterialAdapter.java

I don't know if i'll help you, but I think it's an clue :+1:

Mark-William-Schumacher commented 9 years ago

Is there any method I can use to set the material view pagers height? So when we scroll to the top of my recycler view , I can expand out the header if i experience this kind of problem?