The Scroll position of ScrollView jumped abnormally when ViewPager nested ScrollView nested RecyclerView.

  android, question

The outermost layer is an effect like WeChat, with several Fragment in ViewPager.
Fragment inside uses RecyclerView, but there are other things on RecyclerView, so I put them in LinearLayout and then put LinearLayout in ScrollView. In this way, I have achieved the desired effect.
ViewPager can slide horizontally and switch vertically.
The question is:
Whether it is sliding to switch ViewPager or directly clicking the button below to switch (just like WeChat), when the switching animation is finished and the RecyclerView part is visible, if the top edge of RecyclerView is lower than the top edge of the screen, ScrollView will jump and the top edge of RecyclerView will be just next to the top edge of the screen.
No jitter occurs when RecyclerView is not visible during switching.
When the top edge of RecyclerView is higher than the top edge of the screen during switching, no jitter will occur.
RecyclerView caused by other reasons can be seen, for example, jump of Activity will not occur.

Fragment layout fragment

...
 <ScrollView
 android:layout_width="match_parent"
 android:layout_height="wrap_content">
 <LinearLayout
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:orientation="vertical">
 
 <TextView
 android:layout_width="wrap_content"
 android:layout_height="100dp"
 android:text="Text"/>
 <android.support.v7.widget.RecyclerView
 Android:id="@ plus id/rcv_draw_list "
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:background="@drawable/bg_bottom_line"
 />
 </LinearLayout>
 </ScrollView>
 ...
<TextView
 android:layout_width="wrap_content"
 android:layout_height="100dp"
 android:text="Text"/>

This View can be implemented with a HeaderView of RecylerView, which, like ListView, can solve the problem. When the control slides and aligns itself, I think it should be caused by the focus change.