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
25
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,592
  • 1
  • 25
  • 43
19
votes
1 answer

Bad performance when use RecyclerView inside NestedScrollView

I'm developing a search contact feature, in that screen, there is a RecyclerView inside NestedScrolView (fillViewport = true). Screen design: (This design is accepted by customer, I can't change it) After loading all contacts of current device…
19
votes
7 answers

Error inflating class - NestedScrollView - class not found

Running Android Studio 2.1.2, Windows 7. I replaced a ScrollView with a NestedScrollView and now I'm getting android.view.InflateException: Binary XML file line #2: Error inflating class NestedScrollView java.lang.ClassNotFoundException: Didn't…
user316117
  • 7,971
  • 20
  • 83
  • 158
18
votes
2 answers

Disable NestedScrollview scroll

Design of my app Screen - 1 (contains Recyclerview-2) Screen - 2
18
votes
4 answers

Saving scroll state of NestedScrollView

My application revolves around a HomeActivity which contains 4 tabs at the bottom. Each of these tabs is a fragment, all of them are added (not replaced) from the start, and they are hidden/shown upon tapping the appropriate tab. My problem is that…
Julian Honma
  • 1,674
  • 14
  • 22
18
votes
4 answers

ItemTouchHelper with RecyclerView in NestedScrollView: Drag scrolling not work

I have implemented ItemTouchHelper like descriped in this articel: https://medium.com/@ipaulpro/drag-and-swipe-with-recyclerview-b9456d2b1aaf#.k7xm7amxi All works fine if the RecyclerView is a child of the CoordinatorLayout. But if the RecyclerView…
17
votes
3 answers

Recyclerview view is not working with setNestedScrollingEnabled and its never recycle any views also

I am facing two problems: The scroll listener won't work The RecyclerView never recycles any views when it's attached to a NestedScrollView. It acts like a linear layout inside the ScrollView. It uses a lot of memory and creates lags. I am…
17
votes
3 answers

Android doesn't resize my layout when there is a NestedScrollView in the hierarchy

I just observed the following behavior on my Nexus 9 with Android 7.1.1 and Android Support Library 25.3.1. Here is my activity's layout:
17
votes
2 answers

Programmatically scroll to end of screen

I have implemented TapTargetView library to my app. After passing a certain element, I need to focus on the next view which is outside the screen at this moment: @Override public void onSequenceStep(TapTarget lastTarget) { if (lastTarget.id() ==…
Haze
  • 193
  • 1
  • 1
  • 7
17
votes
2 answers

Smooth scroll and Fling with NestedScrollView,AppBarLayout and CoordinatorLayout

I am working on an application where I'm using AppBarLayout with CollapsingToolbarLayout and NestedScrollView. I have successfully implemented this and it is working fine. Now what i am trying to do is, that on fling(fast swipe up) on the …
14
votes
5 answers

Recycler View loading very slow for large data when inside NestedScrollView

I have added RecyclerView inside my NestedScrollView. Basically I want RecyclerView to scroll with other Views. The problem that I am facing is that for a small set of data, it is working fine, but for a large set of data(200 entries) whenever I…
14
votes
5 answers

When drag item out of visible space in recyclerview in nestedscrollview - nestedscrollView doesn't scroll

I have construction where there are two items which are static and recyclerview with draggable items. Both types of view are wrapped by LinearLayout. LinearLayout is wrapped by NestedScrollView. XML explanation:
deadfish
  • 11,996
  • 12
  • 87
  • 136
14
votes
6 answers

Recyclerview onscrolllistener not working when setNestedScrollingEnabled to false

I want to implement pagination with recyclerView, for this I add addOnScrollListener to the recyclerView but I am having trouble with RecyclerView.OnScrollListener not working when I set rvGridExplore.setNestedScrollingEnabled(false); But when I…
Adnan Ali
  • 792
  • 1
  • 8
  • 21
13
votes
2 answers

Fling smoothly AppBarLayout with NestedScrollView using AppBarLayout.Behavior

I have an AppBarLayout and NestedScrollView. I want the NestedScrollView whenever it scroll down, the AppBarLayout should also expand gracefully, without the NestedScrollView stop right before the AppBarLayout Expand; a second Flight/Scroll is…
Elye
  • 53,639
  • 54
  • 212
  • 474
12
votes
6 answers

Stop scroll of parent (NestedScrollview) When scrolling Child(RecyclerView)

I need behavior similar to this implementation But NestedScrollView would be the parent and RecyclerView would be the child of would NestedScrollView . Eg:…
1
2
3
46 47