解决办法在RecyclerView
的外部套上一层RelativeLayout
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants">
<android.support.v7.widget.RecyclerView
android:id="@+id/testRv"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</RelativeLayout>