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

Why scrolling stops at collapsed toolbar when scrolling up? (Not expanding to show image)

As I explained on the title, if I scroll from the bottom to top fastly with removing my finger immediately after pulling down, scrolling stops at collapsed toolbar. I want it to expand. If I pull smootly the nestedscrollview, there is no problem,…
5
votes
2 answers

Nested scrollview doesnt take available space in CoordinatorLayout

I am facing a problem regarding implementing a NestedScrollview inside a CoordinatorLayout. See the following layout code:
Sjaak Rusma
  • 1,424
  • 3
  • 23
  • 36
5
votes
1 answer

NestedScrollView inside ViewPager inside NestedScrollView: Innermost NestedScrollView not scrolling

So I have a Fragment which uses a CoordinatorLayout with a NestedScrollView inside. Inside that NestedScrollView is a ViewPager. Each item of that ViewPager is a CoordinatorLayout with a NestedScrollView inside. The behavior I want is that when each…
5
votes
2 answers

List view not scrolling in fragment using view pager inside NestedScrollView

Hi there i needed to create layout like whatsapp, which scrolls the actionbar but not tabLayout. I used viewpager for loads fragment in it. In fragment i added listview but on Listview scroll that action bar not scrolling there. Using some tutorials…
5
votes
0 answers

NestedScrollView.OnScrollChangedListener not working

I am writing an app which has NestedScrollView. I want to handle if the scroll has changed. I have searched on internet and found that i have to create custom ScrollView. Here is my code: public interface OnScrollChangedListener { void…
5
votes
0 answers

Is it possible to add a ScrollView to a AppBarLayout

I need to work with two ScrollViews. One inside AppBarLayout and the other outside. For the outside ScrollView, I'm using a NestedScrollView with the appbar_scrolling_view_behavior and it's working correctly. For the inside, I'm using an Scrollview…
4
votes
1 answer

How to drag down a BottomSheet view from inside a NestedScrollView?

I have inside my BottomSheet view a NestedScrollView and I want to drag down the bottomSheet when scrolling down from the nestedScrollview but it is not working. My XML code is like below :
4
votes
1 answer

Collapsing toolbar in Jetpack compose

How to build an Instagram profile page using Jetpack compose. I've tried multiple libraries like NestedScrollView, CollapsingToolbar to get collapsable/scrollable Topbar but they are not looking smooth. It's easy to build with XML using…
4
votes
2 answers

How to use the whole space when placing ConstraintLayout inside a NestedScrollView?

I'm trying to put a ConstraintLayout inside a NestedScrollView, but there is a line that separates the ConstraintLayout. I can't place anything underneath that invisible line. I have been trying for hours and can't find the issue.
Houman
  • 64,245
  • 87
  • 278
  • 460
4
votes
3 answers

How to always align button to screen bottom in a bottom sheet dialog fragment

I have a custom class extending BottomSheetDialogFragment which will be displayed on click of the button. My custom BottomSheetDialogFragment layout has 3 parts. a.A Title text, b.A radio group (to which I add n items dynamically) c.An OK button at…
4
votes
4 answers

How to resolve Soft keyboard Show/hide working slow?

i have use Edittext in ViewPager>Fragment>NestedScrollView>RecyclerView>Edittext when i show/hide keyboard it take too many time to show/hide and also show me white background. i all things use like AdjustResize,AdjustPan after close keyboard show…
4
votes
2 answers

EditText not scrollable inside NestedScrollView

Layout: I have an EditText and 2 RecyclerViews inside a NestedScrollView, which are not visible (visibility=gone)
4
votes
3 answers

Recyclerview inside a Fragment which is inside BottomsheetFragment not scrolling?

I have a BottomsheetDialogFragment which has a normal Fragment which has a recyclerview. The problem is I am not able to scroll the recyclerview. I thought of using the NestedScrollView but I have a search functionality inside the fragment. When the…
4
votes
3 answers

How to Scroll Vertically Viewpager

I am unable to scroll view pager vertically. when I use NestedScrollView in the Child layout, pages become blank. I tried many solutions.but failed. This is my main fragment nav_swipe.xml
4
votes
1 answer

RecyclerView inside NestedScrollView scroll faster than RecyclerView

RecyclerView inside NestedScrollView scroll faster, but when we remove NestedScrollView RecyclerView is not working smoothly, it stuck while scrolling and after full loaded, no problem in scrolling,it take some time to load data when it is inside…
Midhilaj
  • 4,905
  • 9
  • 45
  • 88