use of com.eros.framework.extend.hook.ui.view.refresh.loadmore.LoadingLoadMore 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);
}
use of com.eros.framework.extend.hook.ui.view.refresh.loadmore.LoadingLoadMore in project WeexErosFramework by bmfe.
the class HookWxScroller method setLoad.
// iCoastline 下拉加载更多
@WXComponentProp(name = HookConstants.NAME.SHOW_LOADMORE)
public void setLoad(String showLoadMore) {
boolean customerLoad = WXUtils.getBoolean(showLoadMore, false);
if (customerLoad && mLoadMore == null) {
mLoadMore = new LoadingLoadMore(getContext(), this);
((HookBounceScrollerView) this.getHostView()).setOnLoadingListener(mLoadMore);
Runnable runnable = WXThread.secure(new Runnable() {
public void run() {
((HookBounceScrollerView) getHostView()).setCustomFootView(mLoadMore);
}
});
this.handler.postDelayed(runnable, 100L);
}
}
Aggregations