RecyclerView的上拉加载功能
自己写了一个单纯的上拉加载功能,适应性好。希望大家多给意见,如有bug及时反馈留言。
核心用法:
1.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent">
<mView.QRecycleView
android:id="@+id/qRecycleView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical">
</mView.QRecycleView>
</RelativeLayout>
2.
qRecycleView = (QRecycleView) findViewById(R.id.qRecycleView);
qRecycleView.setLayoutManager(n