Questions tagged [android-nestedscrollview]

A NestedScrollView is just like a ScrollView, but it supports acting as both a nested scrolling parent as well as a child. It works this way on both new and old versions of Android. Nested scrolling is enabled by default.

NestedScrollView is just like ScrollView, but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. Nested scrolling is enabled by default.

Useful reference

694 questions
9
votes
2 answers

Use PagedListAdapter inside NestedScrollView

I have a RecyclerView that has a PagedListAdapter. When I put the RecyclerView inside NestedScrollView the PagedList cannot compute the end of the list so start requests continuous burst for new data. The main question is How should I use…
SamiAzar
  • 1,260
  • 13
  • 29
9
votes
1 answer

SwipeRefreshLayout is not intercepting the MotionEvent of the NestedScrollingChild

I am using a NestedScrollWebView (heavily influenced by the NestedScrollView), which solves many of the known issues associated with using a WebView in a CoordinatorLayout.
9
votes
2 answers

Pass Android NestedScrollView horizontal swipes to a parent View

I'm trying to make a left-right swipeable card system (like Tinder), where the card has a NestedScrollView on it. The goal would be that if the user swiped up and down only, the NestedScrollView would scroll, but if the user swiped left or right,…
9
votes
4 answers

How can i have a ListView inside a NestedScrollView

I have created an app with a page that need to load content dynamically from web service. I want to have listview that can scroll together with a linear layout inside NestedScrollView. But when the contents is loaded to the listview, it doesn't…
Marcus
  • 617
  • 2
  • 13
  • 19
8
votes
0 answers

BottomSheet Fragment Scroll behaviour issue in NestedScrollview present in Bottom sheet layout

my Scenario is on button click i need to open a bottomsheet which is half expanded and when we drag up it should behave like collasping toolbar. Here Appbar behaviour is in sync with bottomsheet but somehow NestedScrollview behaviour is only sync…
8
votes
3 answers

Problem in using NestedScrollView in Constraint layout

I am using Constraint layout inside the NestestScrollView as shown below.
8
votes
1 answer

Handle scrolling for VerticalViewPager with NestedScrollView inside

Background: I am using a variant of ViewPager which instead of scrolling in horizontal direction, it scrolss in vertical…
8
votes
1 answer

NestedScrollView throw error "android.view.InflateException" when use nestedScrollEnabaled attribute

I have ViewPager inside NestedScrollView and in order to make my ViewPager attach the right height and scroll attributes I added android:nestedScrollingEnabled="true" to my NestedScroll.., here is a snap for my design :
8
votes
1 answer

How to use viewpager inside nestedScrollView with a view top of viewpager

I am unable to scroll nestedScrollView because of viewpager. So let me explain here is layout design that i want to create: There is FrameLayout inside NestedScrollView and a viewpager with tab layout. Viewpager load three fragments with endless…
8
votes
2 answers

How to set the Maximum Height for a NestedScrollView in Android?

I have a NestedScrollView within a ScrollView. the NestedScrollView contains a TextView. So when the TextView expands above 4 or n lineas, I need to make it Scrollable TextView. Any help is much appreciated!!
I. A
  • 2,252
  • 26
  • 65
7
votes
1 answer

How can I achieve "double" collapsing toolbar with two pinned views

I am trying to achieve a layout shown in the image. So I would like to have two views that pin on top of the screen after the users scrolls to a certain point. Other views should collapse until they are fully hidden (except for View 3 which is…
7
votes
2 answers

Android: Custom class for setting the max height of a NestedScrollView does not work (there is no scrollbar)

I am creating a custom class to set the max height of a NestedScrollView, based on the answer provided in this StackOverflow question: How to set the Maximum Height for a NestedScrollView in Android? However, when I include the custom class…
Adam Lee
  • 436
  • 1
  • 14
  • 49
7
votes
0 answers

Nested Expandable RecyclerView lags on Expand and Collapse with too many number of child items freezes

I have created expandable recycle view in my app looks like below It has parent Items Menu category and Category has child items as shown in image Following is part of my parent adapter code. public void onBindViewHolder(@NonNull…
7
votes
1 answer

CoordinatorLayout - flinging in opposite directions causes jittering

I need to make a scrollable fragment with static views at the top and a ViewPager with a RecyclerView in each page at the bottom. I am trying to achieve the desired outcome using a CoordinatorLayout, but ran into a problem - when I fling the top…
7
votes
2 answers

Horizontal and Vertical RecyclerView under the same scroll

I have to do something like Instagram does. I have a horizontal RecyclerView for stories, and, below, a vertical RecyclerView for feed. I want to accomplish the same scroll behavior(the stories should go with feed at scroll, not stay on top as…