解决在RecyclerView加入android:nestedScrollingEnabled=”true”
或者是设置setNestedScrollingEnabled(false)
解决启动程序不在顶部:
在顶部布局加入
android:focusable=”true”
android:focusableInTouchMode=”true”
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"