ich habe dieses Layout>RecyclerView Innenansicht-Pager in einem Scrollview
<?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>
Ein d ViewPager Fragment haben diesen Code
<?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>
i die
header_content Layout wollen
gescrollt werden, wenn der
net_rclerview innerhalb des View-Pager Fragment
gescrollt wird. Das Problem ist Recyclerview ist Scrollen, aber der obige Inhalt scrollt nicht aus der Sicht, ist das möglich zu erreichen und wenn es irgendwelche anderen Optionen, die ich tun kann?
make RecyclerView.setNestedScrollingEnabled (false); –
@NileshRathod funktioniert nicht :( –
Haben Sie eine Lösung für dieses Problem gefunden? –