Search in sources :

Example 1 with HookBounceRecyclerView

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

Example 2 with HookBounceRecyclerView

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

Aggregations

HookBounceRecyclerView (com.eros.framework.extend.hook.ui.view.HookBounceRecyclerView)2 BMLoadingRefresh (com.eros.framework.extend.hook.ui.view.refresh.bmrefresh.BMLoadingRefresh)1 LoadingLoadMore (com.eros.framework.extend.hook.ui.view.refresh.loadmore.LoadingLoadMore)1