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

Pass touch event from NestedScrollView to parent view's

I have a ViewPager below a NestedScrollView width some top padding, and clipToPadding(false) and transparent background (like as image). My ViewPager can't get touch event and doesn't work. How can I solve this problem? (I can't change my structure…
6
votes
3 answers

Android espresso NestedScrollView, how to scroll to bottom

I'm trying to test with Espresso a NestedScrollView but I am having an error: "Action will not be performed because the target view does not match one or more of the following constraints: at least 90 percent of the view's area is displayed to the…
6
votes
0 answers

OnNestedScroll - sometimes is not triggred

I am trying to show/hide FAB when I scroll in NestedScrollView which is inside of CoordinatorLayout. I achieved that with Behavior which you can check on this link (github example). The problem is that is call show/hide method inside OnNestedScroll…
6
votes
1 answer

Android: animateLayoutChanges not working properly with CoordinatorLayout

I have been trying to use a Coordinator Layout in my android app. I have an app bar layout and a nested scroll view in coordinator layout. In my nested scroll view I have a Linear layout with animateLayoutChanges as true. My problem is that when…
5
votes
2 answers

Multiple recyclerviews (gridlayout and horizontal linearlayout) inside one view

I am trying to achive this: First I tried by putting all my recyclerviews (with WRAP_CONTENT) inside a nestedscrollview. That worked, but the performance was awful. Then I tried to set a height for my recyclerviews, that was a lot better…
5
votes
2 answers

NestedScrollView + CoodinatorLayout scrollBy() scrollTo() methods do nothing

I have a NestedScrollView being used with CoordinatorLayout + AppBarLayout + CollapsingToolbarLayout with parallax effect similar to this tutorial I need to scroll the content programmatically (preferably a smooth scroll, i.e. animated), however…
tenprint
  • 1,123
  • 1
  • 11
  • 29
5
votes
2 answers

NestedScrollView Having Constraint Layout not scrolling

My xml is composed by one constraint layout. Inside this there are 2 buttons and 1 nested scroll view. Inside the ScrollView there are various elements including recycle view. I would like that the recycle view not scroll but scroll only the nested…
5
votes
1 answer

RecyclerView inside NestedScrollView causing slow load and/or crashing

I am working with a RecyclerView which will be used to load potentially many images and I'd like to have an actionbar above the RecyclerView like this: But I'd also like the actionbar to only have that grayish background at the very top. If the…
5
votes
0 answers

NestedScroll view detect scroll state

I am trying to detect scroll state whenever is it STATE_IDLE or DRAGGING. For the reference i found this answer: https://stackoverflow.com/a/37667686/1108519 which has helped me to get the basic idea, i implemented it but its just detecting…
HyperX
  • 1,121
  • 2
  • 22
  • 42
5
votes
6 answers

Collapsing AppBarLayout not scrolling with TabLayout and NestedScrollView

I have an issue with scrolling Collapsing AppBar, when I am trying to scroll it touching the AppBarLayout part. And also it sometimes scrolling not smoothly. Here is short (1m 30s) video of issue:…
5
votes
2 answers

RecyclerView inside NedtedScrollView calls onCreateViewHolder for every item

I have a case when I need to have RecyclerView inside NestedScrollView. The problem is that during init methods onCreateViewHolder and onBindViewHolder calls for EVERY item in list (100 items in example). So there is no recycling views on the screen…
5
votes
1 answer

CoordinatorLayout with multiple snapping points

Here I've got quite a complex animation that may be resolved (I believe) in a simple way using the CoordinatorLayout. It has 3 states: Initial (left screen) - Header view is shown fully (orange background): Toolbar, grey roundrect (it's…
5
votes
1 answer

Recyclerview scrollToPosition doesn't work with NestedScrollView ? Is there anyway?

So I have a Recyclerview within a NestedScrollView. When I say recycleview.scrollToPosition(X) or recycleview.getLayoutManager().scrollToPosition(X) it doesn't work at all. If I move the recycleview out from the nestedScrollView it works fine, but I…
5
votes
8 answers
5
votes
2 answers

Bottom part of NestedScrollView hidden by navigation bar [Android]

I've got a problem with NestedScrollView on layout with CollapsingToolbarLayout. When I scroll text to bottom last sentences are covered by navigation bar. layout.xml: