Skip to content

项目中常用的刷新框架,基于别人的框架再次封装的

Notifications You must be signed in to change notification settings

Jameni/JameniListLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

refreshLib

项目中常用的刷新框架,基于别人的框架再次封装的

github地址

https://github.com/Jameni/JameniListLib

初始化

    datalist = new ArrayList<>();
    lvMain.setListBackgroundWhite();
    lvMain.setLinearManager();
    myadapter = new Myadapter();
    lvMain.setAdapter(myadapter);
    lvMain.setDivider();
    lvMain.setItemClickListener(this);
    lvMain.setOnRefreshListener(this);
    lvMain.setOnLoadMoreListener(this);

刷新列表

    lvMain.refreshComplete();//停止刷新
    lvMain.loadMoreComplete();//加载更多
    lvMain.update(datalist);//刷新列表数据
    //判断是否是底部
    if (isFoot(totalPage, pageIndex)) {
        lvMain.setOnLoadMoreEnable(false);//是最后一页,隐藏加载跟多
    }else {
        lvMain.setOnLoadMoreEnable(true);//是最后一页,展示加载跟多
    }

About

项目中常用的刷新框架,基于别人的框架再次封装的

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages