recyclerview - RecycleView is not visible when its set inside a NestedScrollView in android -
how use recyclerview inside nestedscrollview? recyclerview content not visible after setting adapter.
anyway, have tried recyclerview inside nestedscrollview adding viewgroup framelayout or relativelayout single child of nestedscrollview , added recyclerview inside framelayout or relativelayout)
thanks in advance...
<android.support.design.widget.coordinatorlayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/colorwhite"> <relativelayout android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v4.widget.nestedscrollview android:id="@+id/nestedview" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/appbar" android:fillviewport="true" app:layout_behavior="@string/appbar_scrolling_view_behavior"> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/profile_bg_clound" android:orientation="vertical"> <relativelayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginbottom="5dp" android:layout_marginleft="15dp" android:layout_marginright="15dp" android:layout_margintop="5dp"> <android.support.v4.widget.swiperefreshlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/swipe_refresh_layout" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v7.widget.recyclerview android:id="@+id/rv_driverrequests" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> </android.support.v4.widget.swiperefreshlayout> </relativelayout> </linearlayout> </android.support.v4.widget.nestedscrollview> </relativelayout> </android.support.design.widget.coordinatorlayout>
replace recycleview this...
<com.app.view.customrecyclerview android:id="@+id/rv_driverrequests" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:fillviewport="true" app:layout_behavior="@string/appbar_scrolling_view_behavior" />
hope work.
Comments
Post a Comment