Skip to main content
Improved formatting
Source Link
Shadow
  • 9.5k
  • 4
  • 50
  • 60

I am using NestedScrollView in tab layout and when I implemented RecyclerView in NestedScrollView 2 problems occur:

  1. Toolbar is not hiding.
  1. RecyclerView in not scrolling smoothly.
  1. Toolbar is not hiding.
  2. RecyclerView in not scrolling smoothly.

Here is my Code:

<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:fillViewport="true" xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:layout_width="match_parent" android:background="#fff" android:layout_height="wrap_content"> <android.support.v7.widget.RecyclerView android:layout_below="@+id/toolbar" android:id="@+id/recyclerView" android:background="#fafafa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" /> <ProgressBar android:id="@+id/progressBar1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> </android.support.v4.widget.NestedScrollView> 

I am using NestedScrollView in tab layout and when I implemented RecyclerView in NestedScrollView 2 problems occur:

  1. Toolbar is not hiding.
  1. RecyclerView in not scrolling smoothly.

Here is my Code:

<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:fillViewport="true" xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:layout_width="match_parent" android:background="#fff" android:layout_height="wrap_content"> <android.support.v7.widget.RecyclerView android:layout_below="@+id/toolbar" android:id="@+id/recyclerView" android:background="#fafafa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" /> <ProgressBar android:id="@+id/progressBar1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> </android.support.v4.widget.NestedScrollView> 

I am using NestedScrollView in tab layout and when I implemented RecyclerView in NestedScrollView 2 problems occur:

  1. Toolbar is not hiding.
  2. RecyclerView in not scrolling smoothly.

Here is my Code:

<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:fillViewport="true" xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:layout_width="match_parent" android:background="#fff" android:layout_height="wrap_content"> <android.support.v7.widget.RecyclerView android:layout_below="@+id/toolbar" android:id="@+id/recyclerView" android:background="#fafafa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" /> <ProgressBar android:id="@+id/progressBar1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> </android.support.v4.widget.NestedScrollView> 

recyclerView RecyclerView is not working in NestedScrollView

I am using NestedScrollView in tab layout and when iI implemented recyclerViewRecyclerView in NestedScrollView 2 problemproblems occur:

  1. toolbar is not hiding.
  2. recyclerView in not scrolling smoothly. Here is my Code:
  1. Toolbar is not hiding.
  1. RecyclerView in not scrolling smoothly.

Here is my Code:

<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:fillViewport="true" xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:layout_width="match_parent" android:background="#fff" android:layout_height="wrap_content"> <android.support.v7.widget.RecyclerView android:layout_below="@+id/toolbar" android:id="@+id/recyclerView" android:background="#fafafa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" /> <ProgressBar android:id="@+id/progressBar1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> </android.support.v4.widget.NestedScrollView> 

recyclerView is not working in NestedScrollView

I am using NestedScrollView in tab layout and when i implemented recyclerView in NestedScrollView 2 problem occur:

  1. toolbar is not hiding.
  2. recyclerView in not scrolling smoothly. Here is my Code:
<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:fillViewport="true" xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:layout_width="match_parent" android:background="#fff" android:layout_height="wrap_content"> <android.support.v7.widget.RecyclerView android:layout_below="@+id/toolbar" android:id="@+id/recyclerView" android:background="#fafafa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" /> <ProgressBar android:id="@+id/progressBar1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> </android.support.v4.widget.NestedScrollView> 

RecyclerView is not working in NestedScrollView

I am using NestedScrollView in tab layout and when I implemented RecyclerView in NestedScrollView 2 problems occur:

  1. Toolbar is not hiding.
  1. RecyclerView in not scrolling smoothly.

Here is my Code:

<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:fillViewport="true" xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:layout_width="match_parent" android:background="#fff" android:layout_height="wrap_content"> <android.support.v7.widget.RecyclerView android:layout_below="@+id/toolbar" android:id="@+id/recyclerView" android:background="#fafafa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" /> <ProgressBar android:id="@+id/progressBar1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> </android.support.v4.widget.NestedScrollView> 

I am using NestedScrollView in tab layout and when i implemented recyclerView in NestedScrollView 2 problem occur:

  1. toolbar is not hiding.
  2. recyclerView in not scrolling smoothly. Here is my Code:
<?xml version="1.0" encoding="utf-8"?>   <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:fillViewport="true"   xmlns:android="http://schemas.android.com/apk/res/android">   <RelativeLayout   android:layout_width="match_parent" android:background="#fff"   android:layout_height="wrap_content" > layout_height="wrap_content"> <android.support.v7.widget.RecyclerView   android:layout_below="@+id/toolbar" android:id="@+id/recyclerView" android:background="#fafafa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" /> <ProgressBar android:id="@+id/progressBar1"   android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout>   </android.support.v4.widget.NestedScrollView> 

I am using NestedScrollView in tab layout and when i implemented recyclerView in NestedScrollView 2 problem occur:

  1. toolbar is not hiding.
  2. recyclerView in not scrolling smoothly. Here is my Code:
<?xml version="1.0" encoding="utf-8"?>   <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:fillViewport="true"   xmlns:android="http://schemas.android.com/apk/res/android">   <RelativeLayout   android:layout_width="match_parent" android:background="#fff"   android:layout_height="wrap_content" >  <android.support.v7.widget.RecyclerView   android:layout_below="@+id/toolbar" android:id="@+id/recyclerView" android:background="#fafafa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" /> <ProgressBar android:id="@+id/progressBar1"   android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> </android.support.v4.widget.NestedScrollView> 

I am using NestedScrollView in tab layout and when i implemented recyclerView in NestedScrollView 2 problem occur:

  1. toolbar is not hiding.
  2. recyclerView in not scrolling smoothly. Here is my Code:
<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:fillViewport="true" xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:layout_width="match_parent" android:background="#fff" android:layout_height="wrap_content"> <android.support.v7.widget.RecyclerView android:layout_below="@+id/toolbar" android:id="@+id/recyclerView" android:background="#fafafa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" /> <ProgressBar android:id="@+id/progressBar1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout>   </android.support.v4.widget.NestedScrollView> 
Source Link
Loading