我认为可以通过NestedScrollingChild NestedScrollingParent.
但我不能真正理解他们。谁能帮帮我!
产品经理坚持设计。
ScrollView包含一个,一个“ LinearLayoutTabLayout”和一个ViewPager。
contains ViewPager2fragment包含RecyclerView或仅包含 2 。RecyclerView
当ScrollView滚动到底部时,RecyclerView可以滚动到底部。
当RecyclerView滚动到 Top 时,ScrollView可以滚动到 Top。
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_width="match_parent"
android:layout_height="1000dp" />
<TableLayout
android:layout_width="match_parent"
android:layout_height="60dp"></TableLayout>
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="match_parent"></android.support.v4.view.ViewPager>
</LinearLayout>
</ScrollView>
