use of com.ycr.lib.ui.pullrefresh.smart.footer.ClassicsFooter 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