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
12
votes
4 answers

NestedScrollView setOnScrollChangeListener api 21

Hello folks I'm trying to handle an onScrolled event in my recyclerView, that's inside a NestedScrollView. So far, I have found setOnScrollChangeListener, however this method is API 23, and I'm targeting API 21, any idea to handle this issue back in…
12
votes
4 answers

NestedScrollView's fullScroll(View.FOCUS_UP) not working properly

I have a NestedScrollView populated with a vertical LinearLayout, which itself has a bunch of children of various view types: multiple TextViews, two static GridViews, and even a FrameLayout to show a Fragment beneath all of this. When pressing the…
S Fitz
  • 1,074
  • 15
  • 31
12
votes
4 answers

RecyclerView inside NestedScrollView onBindViewHolder calling for all getItemCount size

When I put RecyclerView inside NestedScrollView then onBindViewHolder is calling for all row like say I have list which has size of 30 then onBindViewHolder is called for all 30 rows at one time even without scrolling RecyclerView list; …
11
votes
2 answers

How to let NestedScrollView scroll in MotionLayout?

I have a NestedScrollView in MotionLayout once Motion Scene is ended then NestedScrollView is visible but when i try scrolling the view no event's are going to NestedScrollView. Video of Requirement Layout xml:
Anmol
  • 8,110
  • 9
  • 38
  • 63
11
votes
4 answers
11
votes
4 answers

How to get percentage of scroll in NestedScrollView any time (smoothly)?

I want to change the alpha of toolbar base on scroll, like below: At first, the toolbar is transparent and by scrolling to the bottom it will more and more visible and at the end it will be fully opaque (visible). The structure of my layout…
Hamed Ghadirian
  • 6,159
  • 7
  • 48
  • 67
10
votes
3 answers

Vertical ViewPager2 with RecyclerView Scrolling Issue

I'm using a ViewPager2 with two fragments in a vertical orientation. When the user swipes down to the second fragment, there is a RecyclerView that scrolls content in the same vertical direction. The issue is that when I scroll the contents of the…
10
votes
5 answers

Horizontal RecyclerView inside ViewPager is not scrolling

I have a horizontal RecyclerView inside a Complex hierarchy that looks like this - this viewpager is taking away the scroll event
10
votes
1 answer

Prevent scrolls in Bottom Sheet ancestor view

I have a CoordinatorLayout containing two NestedScrollViews, One has ScrollingViewBehavior and the other has BottomSheetBehavior and plays BottomSheet role, The problem is when I drag the BottomSheet, The first NestedScrollView scrolls too : …
10
votes
3 answers

Scroll to Collapse View without Toolbar

I'm making a layout similar to recent android's status bar. I have two Views inside container. ViewPager and RecyclerView. The default behavior should be that when I scroll RecyclerView, I want ViewPager to decrease in size and vice…
10
votes
3 answers

NestedScrollView with webView only scrolling NestedScrollView

Below is my code to handle the correct behaviour of my apps actionBar/toolbar/tabBar and nestedScrollView with a ViewPager (webView) inside it. The ViewPager is basically a normal webView. Everything works fine except my ViewPager can't be scrolled…
10
votes
1 answer

Google Map Fragment scrolling inside NestedScrollView

I am having a NestedScrollView as a parent and Fragment containing googleMap as its child. When Ever I scroll downwards or upwards in map the NesetdScrollView is scroll and I am unable to scroll inside the map. Till now I have tried a solution from…
Mehvish Ali
  • 732
  • 2
  • 10
  • 34
10
votes
6 answers

Android Nested Scrollview not scrolling

I am having a Nested ScrollView which contains contents inside a Linear Layout.
Zach
  • 9,989
  • 19
  • 70
  • 107
9
votes
2 answers

Part of the content of a CollapsingToolbarLayout is getting sticky on top, when used with viewpager and recyclerview

I am trying to implement a layout like this: The issue is that when scrolling up the card touches the toolbar and it does not go up anymore like this: I want it to scroll up till the viewpager to fills the screen ie, at least the rectangle…
1 2
3
46 47