只需在recyclerview的外层加入一个父布局就好了
<RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.RecyclerView android:id="@+id/rv_lineView" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="20dip" android:clipToPadding="false" tools:listitem="@layout/item_timeline" android:nestedScrollingEnabled="false"/> </RelativeLayout>
scrollview嵌套recyclerview显示不全现象
原文:https://www.cnblogs.com/ggband/p/9531313.html