GithubHelp home page GithubHelp logo

grouplistview's Introduction

GroupListView简介

  • GroupListView支持上拉加载下拉刷新,并且可以根据需要选择是否启用下拉刷新、上拉加载
  • GroupListView支持列表项悬停效果

运行效果图

运行效果图

PS.

为了实现支付宝账单列表的悬停、上拉加载、下拉刷新的效果,我从Git上Fetch了pulltorefresh和PinnedSectionList两个开源项目,并对pulltorefresh进行修改实现上拉加载的效果,将修改后的pulltorefresh更名成了ListViewPlus,最后将PinnedSectionList的library依赖于ListViewPlus,就实现了带有悬停效果并且支持上拉加载、下拉刷新的GroupListView,现在将其开源出来供大家使用。

使用方法

  1. GroupListView是基于ListView开发的一个控件,所以大家可以使用ListView的方式来使用它。
  2. ListViewPlus部分:关于ListViewPlus方面的功能大家可以参考https://github.com/crazycodeboy/ListViewPlus
  3. PinnedSectionList部分:

PinnedSectionList的使用需要一个实现如下方法的适配器:

@Override
public int getItemViewType(int position) {
	return items.get(position).getType();
}
@Override
public int getViewTypeCount() {
	return 2;
}
@Override
public boolean isItemViewTypePinned(int viewType) {
	return viewType==Item.SECTION;
}

4 .其它使用细节可以参照实例。

grouplistview's People

Contributors

crazycodeboy avatar

Watchers

 avatar

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.