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
7
votes
1 answer

Check recyclerview scroll state inside nestedscrollview

I'm using a recyclerview inside NestedScrollView and I want to pin my search bar to action bar after scrolling and recyclerview items must show under searchbar, I need to make lazy load for my recyclerview items (load next items from server after…
7
votes
2 answers

Interaction of adjustPan and a NestedScrollView

In my layout, I have an EditText in a NestedScrollView. When the EditText is edited with a soft keyboard, I would like the NestedScrollView's content to be scrolled up. However, instead, the whole contents of the activity is scrolled away, including…
Cactus
  • 27,075
  • 9
  • 69
  • 149
7
votes
0 answers

Recyclerview inside NestedScrollview scrollTo position not working

When I use RecyclerView inside NestedScrollView, then I use like scrollTo() fixed position, it's not working. (rlv_brandWithLetter.layoutManager as LinearLayoutManager).scrollToPositionWithOffset(index,…
7
votes
7 answers

NestedScrolling inside a Viewpager inside a BottomSheetDialog

Short version: How do I set the NestedScrollingChild of a NestedScrollingParent with multiple number of such child. Long version I implemented a BottomSheetDialogFragment whose layout consists of a ViewPager, and the adapter of this viewpager…
7
votes
3 answers

RecyclerView scroll dosen't work with NestedScrollView

I have a layout where I have a NestedScrollView containing an Image, multiple buttons and a RecycleView. When I say recycleView.smoothScrollToPosition or recycleView.scrollToPosition() it doesn't do anything at the moment. Refuse to scroll even a…
narancs
  • 5,234
  • 4
  • 41
  • 60
7
votes
5 answers

android : NestedScrollview bottom two button attached

I am trying to create Android product layout. In footer have two buttons it is fixed button. you can see images when I am scrolling up bottom two buttons attached in my layout. Please help how can i do? Image 1 Image 2 after scrolling xml
Sonu Kumar
  • 969
  • 1
  • 11
  • 36
7
votes
1 answer

Add Recyclerview in RecyclerViewPager

I added a Recyclerview in one item of RecyclerViewPager(https://github.com/lsjwzh/RecyclerViewPager). And I want to scroll the RecyclerView when I touch on it. I have tried : View.OnTouchListener listener = new View.OnTouchListener() { …
6
votes
1 answer

Talkback focus goes to toolbar items when recyclerview within nestedscrollview is scrolled

I have a nestedscrollview within my layout which contains few texts, buttons and recyclerviews. When talkback is on, I am able to traverse through all elements. But I face an issue. When my horizontal recyclerview is scrolled and then I swipe to…
6
votes
3 answers

CollapsingToolbarLayout not Collapsing with RecyclerView Scroll Behavior

I have a CollapsingToolbarLayout that shows an image (placed inside the ConstraintLayout to keep the ratio 1:1) and a RecyclerView that has the com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior attached to it. Image of…
6
votes
3 answers

How to limit the height of a RecyclerView inside a NestedScrollView

Within my current Android application, I have a screen that displays an android.support.v4.app.DialogFragment. This DialogFragment view contains the following UI components HEADING == Sub Heading == NestedScrollView ==== RecyclerView ====…
Hector
  • 4,016
  • 21
  • 112
  • 211
6
votes
1 answer

Android: Custom bottom sheet dialog

How can I implement following design functionality with android standard component bottom sheet: Image when Bottom sheet dialog fragment will appear: Image when user scrolled to up to view bottom of content: I will use ViewPager to scrolling…
SBotirov
  • 13,872
  • 7
  • 59
  • 81
6
votes
7 answers

Webview inside Nestedscrollview/Scrollview missing contents

I have a webview which is placed insde a nestedscrollview. Problem i am facing is webview is not loading the full page. Instead it loads a part of the page and after that it keeps the bottom space blank (white). I have tried with scrollview as well.…
Ahsan Aasim
  • 1,177
  • 3
  • 14
  • 40
6
votes
2 answers

RecyclerView inside NestedScrollView does not give correct visible item position

I have a RecyclerView inside a NestedScrollView and I'm trying to get the position of the last visible list item during scroll events using. The following code allows me to reliably detect scroll events: val recyclerView =…
6
votes
4 answers

RecyclerView inside NestedScrollView takes too much time when loading large amount of data

RecyclerView inside NestedScrollView freezes the Activity when loading large amount of data. It loads much faster with ScrollView, but scrolling is affected in that case. I tried setting attributes like setAutoMeasure and setNestedScrollingEnabled…
kunal.c
  • 2,739
  • 1
  • 18
  • 24
6
votes
3 answers

Android: Why there are a blank space at the bottom of RecyclerView which is inside of NestedScrollView?

Using an RecyclerView inside NestedScrollView is creating a strange blank space (like bottom padding) in the activity, causing unnecessary scroll, because there aren't more elements to show. This padding grows with the RecyclerView, I mean: If in…