Giter VIP home page Giter VIP logo

pullrecycler's Introduction

MultiSupportRecyclerView

  • 支持上拉加载
  • 下拉刷新
  • 空状态错误状转换
  • 添加多个header,footer
  • 优雅的实现多条目类型列表
  • 配合[itemtouchhelper]:https://github.com/mrme2014/ItemTouchHelper 来实现非侵入式侧滑菜单,长按拖拽
  • IM消息列表软键盘弹起时消息的定位(看QQ软键盘弹起)
  • 列表滚动动画
  • 统一LinearLayoutManager,GridLayoutManager,StaggeredGridLayoutManager常用api

运行截图

gif录制效果比较渣,录出来竟然花屏了

image

添加依赖

dependencies{

       compile 'com.qiaomu.library:pullrecycler:1.0.6'
}

布局使用

 <com.qiaomu.libmultirecyclerview.PullRecycler
        android:id="@+id/PullRecycler"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

    </com.qiaomu.libmultirecyclerview.PullRecycler>

示例

 public void loadFailed() {
        //刷新
        if (mCurPage == 1) {
            mDatas.clear();
            //空数据
            if (mDatas == null || mDatas.size() == 0) {
                mPullRecycler.showEmptyView();
                //设置空白页面
            }
        } else {
            //加载更多
            mPullRecycler.setEnableLoadMore(false);
        }
        mPullRecycler.setOnRefreshCompeleted();
        mPullRecycler.showLoadOverView();
    } 

更多使用详情请查看demo

pullrecycler's People

Contributors

mrme2014 avatar

Stargazers

 avatar 赵宝鹏 avatar maybe avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

aweiloveandroid

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.