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

636 questions
191
votes
6 answers

Android: ScrollView vs NestedScrollView

What is the difference between ScrollView and NestedScrollView? Both of them, extend FrameLayout. I want to know in depth pros and cons of both of them.
137
votes
13 answers

Recycler view inside NestedScrollView causes scroll to start in the middle

I am getting a weird scrolling behavior when I add a RecyclerView inside a NestedScrollView. What happens is that whenever the scrollview has more rows than can be shown in the screen, as soon as the activity is launched, the NestedScrollView starts…
99
votes
11 answers

Recyclerview inside Nested Scrollview scroll but does not fast scroll like normal Recyclerview or Nested Scrollview

I am using RecyclerView inside NestedScrollView and it works. But when I use RecyclerView inside LinearLayout or something, it scroll in various speed depending on gesture. The scroll listen to gesture and if I slide up only a bit, then it scroll a…
86
votes
13 answers

Programmatically scroll to the top of a NestedScrollView

Is there a way to programmatically scroll to the top of a NestedScrollView by also triggering the scroll events for the parent? smoothScrollTo(x, y) doesn't delegate the scroll events to the NestedScrollingParent.
lukas1994
  • 1,709
  • 1
  • 12
  • 17
40
votes
1 answer

Child inside NestedScrollView not cover full height of screen

I am using NestedScrollView in my fragment. In my xml inside a RelativeLayout but it is not covering full height of screen. Below is my code -
40
votes
8 answers

Espresso, scrolling not working when NestedScrollView or RecyclerView is in CoordinatorLayout

It looks like CoordinatorLayout breaks the behaviour of Espresso actions such as scrollTo() or RecyclerViewActions.scrollToPosition(). Issue with NestedScrollView For a layout like this one:
38
votes
2 answers

Nested scrollview automatically scrolls to bottom

I have a GridView within a NestedScrollView. I have used the code below to resize the GridView whenever the content of the GridView is changed. This works fine, however the NestedScrollView scrolls to the very bottom when I swipe from fragment 3 of…
37
votes
8 answers

how to detect the position of the scroll nestedscrollview android at the bottom?

i just want to detect the position of the scroll nestedscrollview android at the bottom, and the to call function. my code is : scroll.getViewTreeObserver() .addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() { …
Amay Diam
  • 2,299
  • 6
  • 30
  • 53
35
votes
4 answers

RecyclerView ScrollListener inside NestedScrollView

I have an EndlessRecyclerView at the end of a NestedScrollView. EndlessRecyclerView means: when user scrolls to the bottom of the recyclerView it loads more data. This is already implemented and working elsewhere but when I put the recyclerView…
34
votes
2 answers

nested scrollview + recyclerview, strange autoscroll behaviour

In a view pager I have several fragments, one of them uses a nested scrollview with a header and a recyclerview :
Renaud Favier
  • 1,575
  • 1
  • 14
  • 32
31
votes
5 answers

How to scroll to a particular position in recyclerview inside scrollview?

I have searched a lot regarding my query and none of them was useful. I have a recyclerview and some static data inside a scroll view which is inside a root parentlayout as show below. I have set - scrollview.scrollto(0,0); because everytime i…
28
votes
5 answers

NestedScrollView could not scroll with match_parent height child

I implement NonSwipeableViewPager with a fragment has NestedScrollView like this, what I expect is that the scrollview can scroll up and show 2 textviews:
Norutan
  • 1,352
  • 1
  • 11
  • 24
25
votes
4 answers

How to let EditText take as much space it needs, to be scrollable together with content above it?

Background I have a layout that has some views at the top, which should be scrollable together with an EditText below them. The EditText takes the rest of the space, as much space as it needs. Here's a sample POC layout that demonstrate it (used…
android developer
  • 106,412
  • 122
  • 641
  • 1,128
23
votes
3 answers

Pagination not work for the RecyclerView within NestedScrollView

How to implement pagination of recyclerview that is within NestedScrollView?
Jatin
  • 1,510
  • 2
  • 14
  • 28
21
votes
5 answers

Android - NestedScrollView which contains ExpandableListView doesn't scroll when expanded

I have an ExpandableListView inside a NestedScrollView (yes I know, it is not good to have a scrolling view inside another scrolling view but I don't know what else to do, please do tell me if anybody knows a better approach). The size of the…
Kevin Murvie
  • 2,240
  • 1
  • 18
  • 38
1
2 3
42 43