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

White space on top of ViewPager in CoordinatorLayout

In the main layout, I have a coordinatorLayout and its children are appbarLayout and viewPager. In each page of the viewPager, I have a fragment, that either it has a nestedScrollview or a recyclerview. My problem is that there is a white space on…
3
votes
1 answer

PagedListAdapter fetching all the items when recycler view is placed inside nestedscrollview

I am using a NestedScrollView and inside that, I am having some edit text and buttons and then a RecyclerView. When I open the activity all the items start fetching from the server using the PageKeyedDataSource and the RecyclerView scrolls very…
3
votes
5 answers

I can't scroll up because of Swipe Refresh Layout

So many similar questions but mine is a little different. When scrolling down, the activity works perfectly. However, when I scroll up, instead of scrolling, it refreshes. What I actually want is it will refresh only when I'm on the top of the…
3
votes
1 answer

How to get recycler current visible item position

My recyclerview inside NestedScrollView view and recyclerview addOnScrollListener is not working but I need to get recyclerview current visible item position My experment I use "layoutmanager.findLastVisibleItemPosition()" this code but it always…
3
votes
2 answers

RecyclerView inside NestedScrollview not scrolling smoothly

When I'm scrolling down, the items above the RecyclerView does not scroll unless I start touching from the layout above, and it only scrolls down when I have reached the end of the RecyclerView.
3
votes
0 answers

onTouch() method doesn't receive ACTION_DOWN

I have an app, where I need to display multiple RecyclerViews inside ConstraintLayout inside NestedScrollView inside SwipeRefreshLayout. All RecyclerViews have LinearLayoutManager with horizontal orientation. So, my current layout tree looks like…
3
votes
0 answers

Recyclerview loses edge effect when placed inside NestedScrollview

I am trying to place a recyclerview inside a nested scroll view. Following is my layout:
user1122549
  • 664
  • 1
  • 13
  • 27
3
votes
4 answers

NestedScrollView's smoothScrollTo() behaves weird

What I am trying to achieve is to scroll to scroll_position_1 when tab1 (and so on) is clicked like this. I don't understand what's happening at all. Below is the structure of my layout.
3
votes
0 answers

Horizontal and Vertical recyclerview in NestedScrollView

I have added 4 RecyclerView inside NestedScrollView. One of them is Hidden, 2 are Horizontal, 1 is Vertical, as per requirement. All of them using Glide to load image but the Vertical one is not clearing/recycling image memory and all glide call…
GreenFlash
  • 163
  • 1
  • 10
3
votes
1 answer

Implementing app:hideOnScroll for BottomAppBar in Android

I have an app with the one Activity, many Fragments model, where several Fragments have a RecyclerView to show cards with content. I also have implemented the BottomAppBar from Material Design 2.0, and everything is fine except when the AppBar…
3
votes
1 answer

CoordinatorLayout with collapsing toolbar, NestedScrollView & RecyclerView has empty space on bottom (scrolls too far)

As the title explains, I'm using a collapsing toolbar and a NestedScrollView with a RecyclerView inside it, and whenever I have 5 items in the RecyclerView or less, the empty space shows (e.g. if I have only 2 items, the space on the bottom will be…
3
votes
1 answer

Android - How to scale image while scrolling NestedScrollView?

I'm new to android development. I'm trying to scale ImageView while NestedScrollView scrollChange. but I don't know how to do it. This is what look like my layout.
3
votes
3 answers

Button is hiding in nested scrollview with collapsing toolbar

I am using collapsing toolbar with nested ScrollView in Registration fragment, But the register button at the bottom is not fully displaying for the first time when I click on some edit text and opens keyboard if I scroll to bottom then the button…
3
votes
0 answers

Preventing a NestedScrollView from scrolling parent NestedScrollView?

I have a NestedScrollView(NSVchild), inside a horizontal RecyclerView, inside another NestedScrollView(NSVparent). Inside NSVchild is a TextView with long texts. What I want to know now is, how can I prevent NSVchild from scrolling NSVparent, when…
3
votes
1 answer

First click on a View is not working in Android

I have a LinearLayout which needs to be clickable inside a NestedScrollView inside a CoordinatorLayout and almost all the time the first time I click it it simply doesn't work, I must click it another time. Clickable LinearLayout: