use of com.ycr.module.base.view.pullrefresh.MKRefreshHeader in project MVP by yuchengren.
the class BaseApplication method initRefreshView.
private void initRefreshView() {
SmartRefreshLayout.setDefaultRefreshHeaderCreator(new DefaultRefreshHeaderCreator() {
@NonNull
@Override
public RefreshHeader createRefreshHeader(@NonNull Context context, @NonNull RefreshLayout layout) {
return new MKRefreshHeader(context);
}
});
SmartRefreshLayout.setDefaultRefreshFooterCreator(new DefaultRefreshFooterCreator() {
@NonNull
@Override
public RefreshFooter createRefreshFooter(@NonNull Context context, @NonNull RefreshLayout layout) {
ClassicsFooter classicsFooter = new ClassicsFooter(context);
ClassicsFooter.REFRESH_FOOTER_NOTHING = "没有更多数据啦";
classicsFooter.setTextSizeTitle(14);
classicsFooter.setAccentColorId(R.color.text_color_medium);
return classicsFooter;
}
});
}
Aggregations