我有此佈局>RecyclerView一個滾動視圖內
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:fillViewport="true">
<LinearLayout
android:id="header_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<android.support.v7.widget.RecyclerView
android:id="@+id/moods_recyclerview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:scrollbars="none" />
<android.support.v4.view.ViewPager
android:id="@+id/mainwindow_view_pager"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
</ScrollView>
<android.support.design.widget.TabLayout
android:id="@+id/mainwindow_tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="@drawable/view_border_top" />
</LinearLayout>
的d ViewPager片段有此代碼
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.RecyclerView
android:id="@+id/net_rclerview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none"
android:layout_weight="0"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"/>
</LinearLayout>
我想要的
header_content佈局
當視圖-尋呼機片段
內的
net_rclerview被滾動到滾動出來。 問題是recyclerview正在滾動,但上面的內容沒有滾動出來的視圖,,這是可能實現的,如果有任何其他選項我可以做?而不是
make RecyclerView.setNestedScrollingEnabled(false);你的回收站 –
@NileshRathod沒有不工作:( –
你找到了這個問題的解決方案? –