I want to use horizontal recycler view in the item of vertical recycler view but it uses ItemTouchHelper and when I trying to scroll child recycler view, parent item starting swiping instead of scrolling horizontal recycler view
how can I fix that?
Disable swiping for parent recyclerview by not attaching an Itemtouchhelper.
Related
Recycler View Not scrolled with another view in android studio.
when i scroll with recycler view element , it scrolled well , but when i scrolled from another view . recycler view element not scrolled even if many recycler view elements are remaining.
i want to scroll fully from another view too.
I am trying to have a recycler view , which has another recycler view as its child ! i have successfully made the drag and drop work , but am stuck with how do i make the recycler view scroll - when the item has reached the top !
In onDrag :
event.y resets when i cross EVERY OTHER CHILD of the child's recycler view
v.y is also based on the children of the inner recycler view ! i have no way of knowing where the child is at WITH RESPECT to the parent/main recycler view
enter image description here
Here what I tried:
I can able to achieve this layout using Wrapping Horizontal scroll view and recyclerview inside Nestedscroll view.
The problem is :
When I put recycler view inside any of the scrolling containers such as scroll view or Nested scroll view
Its loading all the items in recylerview at once which is not a implementation of recylerview,hence pagination is not achieved.
Requirement:
1.Top header cards should scroll horizontally which is of a (fixed) Limited size.
2.Label for the vertical scroll view
3.Recycler view for vertical scroll of items
All the above should scroll vertically.Please help, or suggest any better way doing this layouot.enter image description here
Yes you can achieve this by having parent layout as <nestedScrollView> and in child you can take 2 recycler view of which one of them should be horizontal and another should be vertical.
set property android:nestedScrollingEnabled:true and your are good to go.
I have two Recycler views inside a LinearLayout in a fragment. one horizontal recycler view at the top of fragment and below that a vertical recyclerview. What i want to do is to add items from the vertical Recyclerview to horizontal Recyclerview by long touching the items.each of Recyclerviews has it's own adapter.how can i add/remove items to/from the top RV and refresh the view at the same time?
I have view pager with list of child views. Every child is horizontal view. When horizontal view is not active view pager not scroll to the next page. If horizontal view is active then It scrolls horizontally but in horizontal scroll view. I need to scroll to next page of view pager if the horizontal view is not active. So I don't know where to handle this action and how to do it.
The following is a complete example of how to implement a ViewPager with different fragment Types and different layout files.
Try This