只需要在RecyclerView的布局外层包裹一个相对布局即可。
<ScrollView android:layout_width="match_parent" android:layout_above="@id/send_rl" android:layout_height="match_parent" android:scrollbars="none">
<RelativeLayout
android:id="@+id/comment_rl" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/_120px" android:padding="@dimen/_10px"> <android.support.v7.widget.RecyclerView android:id="@+id/comment_replay_rv" android:layout_width="match_parent" android:layout_height="wrap_content"></android.support.v7.widget.RecyclerView> </RelativeLayout>
</ScrollView>