use of com.eros.framework.extend.hook.ui.view.HookBounceRecyclerView in project WeexErosFramework by bmfe.
the class HookListComponent method addCustomRefresh.
public void addCustomRefresh() {
if (!mAddCustomRefresh || mBMRefresh != null)
return;
mBMRefresh = new BMLoadingRefresh(getContext(), this);
getHostView().setOnRefreshListener(mBMRefresh);
getHostView().postDelayed(new Runnable() {
@Override
public void run() {
if (getHostView() instanceof HookBounceRecyclerView) {
((HookBounceRecyclerView) getHostView()).setCustomHeaderView(mBMRefresh);
}
}
}, 100);
}
use of com.eros.framework.extend.hook.ui.view.HookBounceRecyclerView in project WeexErosFramework by bmfe.
the class HookListComponent method addCustomLoadMore.
public void addCustomLoadMore() {
// iCoastline 下拉加载更多
if (!mAddCustomload || mload != null)
return;
mload = new LoadingLoadMore(getContext(), this);
getHostView().setOnLoadingListener(mload);
getHostView().postDelayed(new Runnable() {
@Override
public void run() {
if (getHostView() instanceof HookBounceRecyclerView) {
((HookBounceRecyclerView) getHostView()).setCustomFootView(mload);
}
}
}, 100);
}
Aggregations