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.
Related
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
can we use scroll view in list view I am getting confusion in that, when we are using list view then only we get scroll view. that's why i'm getting confusion.
After I put animateLayoutChanges="true" in my layout, recycler view starts to behave weirdly.
Default :
After I click couple times on items
Why does recycler view do this ?
So to be clear, I can solve this with a header view and trickiness, but I'd rather not.
I'd like to have a set of tabs (which also contains some profile information) above a view pager, which could have multiple pages, where each page has a list view. I'd like when you start scrolling initially, that the above tab / profile view will move with the list view (so if you try scrolling the list view, the area above scrolls up) and once the listview is scrolled down until it is at the first item, that the above view starts to scroll back into view.
This is not solveable with a header view, as far as I can tell, without stuffing this profile / tab view into the header of every list view the view pager holds, and to keep them in sync (which just sounds silly).
I feel there's a way I can make use of onInterceptTouchEvent with a custom layout / scrollview of sorts, any tips on doing this?
I want to add footer view to GridView in android as we can add to ListView. Since it is not available in Grid View, I added a loading layout at bottom of screen, and a grid view above it. Loading layout becomes visible when we scroll grid view till end. But when loading layout becomes visible, on scrolling upwards, it remains visible. How this can be customized in a way similar to footer of list view. Any help will be highy appreciated.
Grid View doesnot have footer similar to listview. Its workaround used was: Add a view having progress dialog at bottom of screen below gridview and manage its visibility.