Search in sources :

Example 1 with LoadingLoadMore

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);
}
Also used : LoadingLoadMore(com.eros.framework.extend.hook.ui.view.refresh.loadmore.LoadingLoadMore) HookBounceRecyclerView(com.eros.framework.extend.hook.ui.view.HookBounceRecyclerView)

Example 2 with LoadingLoadMore

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);
    }
}
Also used : LoadingLoadMore(com.eros.framework.extend.hook.ui.view.refresh.loadmore.LoadingLoadMore) HookBounceScrollerView(com.eros.framework.extend.hook.ui.view.HookBounceScrollerView) WXComponentProp(com.taobao.weex.ui.component.WXComponentProp)

Aggregations

LoadingLoadMore (com.eros.framework.extend.hook.ui.view.refresh.loadmore.LoadingLoadMore)2 HookBounceRecyclerView (com.eros.framework.extend.hook.ui.view.HookBounceRecyclerView)1 HookBounceScrollerView (com.eros.framework.extend.hook.ui.view.HookBounceScrollerView)1 WXComponentProp (com.taobao.weex.ui.component.WXComponentProp)1