情形:
在使用getViewType,分不同种类来显示对应的item,
最后一条的item跟其他的显示不一样,但是发现最后一条item显示不全。
在stackoverflow查到结果
http://stackoverflow.com/questions/32742724/recyclerview-is-cutting-off-the-last-item
使用的是比较早的本版的RecyclerView,设置了一个layout_marginBottom解决:
<android.support.v7.widget.RecyclerView
android:id="@+id/simpleList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="20dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
升级RecyclerView的版本为23.2.0就没有这个问题了。