nestedrecyclerview

scroll recyclerview item to top inside of scroll view

扶醉桌前 提交于 2021-01-29 09:09:56
问题 I'm trying to scroll recycler view item to top of screen when user clicks on an item. My layout is set as following - <FrameLayout> -- <ScrollView> --- <LinearLayout /> // static content --- <RecyclerView /> // dynamic content --- <LinearLayout /> // static content -- </ScrollView> -- </FrameLayout> What I want to achieve is when i click on an item of recyclerview. It should scroll up to top of the screen. I have tried following so far but no luck. -> // use recycler view's layout manager to

Recycler View Inside Recycler View not Scrolling

浪子不回头ぞ 提交于 2019-12-23 11:55:04
问题 There is a Recycler View inside the other Recycler View.Both needs to scroll vertically. Outer Recycler view is scrolling properly but inner recycler view is not. Here is the code: LinearLayoutManager mLayoutManager = new LinearLayoutManager(ViewActivity.this); outerRecyclerView.setLayoutManager(mLayoutManager); ViewAdapter adapter = new ViewAdapter(ViewActivity.this); outerRecyclerView.setAdapter(adapter); ViewAdapter is as follows: public void onBindViewHolder(ViewAdapter.ViewViewHolder

Nested RecyclerView. How to prevent parent RecyclerView from getting scrolled while child RecyclerView is scrolling?

最后都变了- 提交于 2019-11-28 04:22:53
I am trying to implement a horizontal recyclerview and each item of the recyclerview will be a vertical recyclerview with a grid layout. The problem that i am facing is that when I try to scroll the child recyclerview vertically sometimes the parent recyclerview takes the scroll and starts scrolling horizontally. The approaches I tried to fix this are, setNestedScrollingEnabled(false) on the parent recyclerview In the onTouch() of the child recyclerview I disable touch events on the parent recyclerview by called requestdisallowinterceptTouchevent(false) None of the above solutions provide a

Nested RecyclerView. How to prevent parent RecyclerView from getting scrolled while child RecyclerView is scrolling?

試著忘記壹切 提交于 2019-11-27 00:17:24
问题 I am trying to implement a horizontal recyclerview and each item of the recyclerview will be a vertical recyclerview with a grid layout. The problem that i am facing is that when I try to scroll the child recyclerview vertically sometimes the parent recyclerview takes the scroll and starts scrolling horizontally. The approaches I tried to fix this are, setNestedScrollingEnabled(false) on the parent recyclerview In the onTouch() of the child recyclerview I disable touch events on the parent