Coder Social home page Coder Social logo

waterdroplistview's Introduction

#WaterDropListView A powerful ListView with awesome pull-refresh and pull-on-loadmore function! ##PreView demo ##Usage 1.download the project
2.import it into your project as a lib.
3.use the “WaterDropListView” in your code,just like the normal ListView.
###Code

  1. Replace standard ListView with medusa.theone.waterdroplistview.view.WaterDropListView in your layout.xml file.
<medusa.theone.waterdroplistview.view.WaterDropListView
           android:id="@+id/waterdrop_listview"
           android:layout_width="match_parent"
           android:layout_height="wrap_content">
</medusa.theone.waterdroplistview.view.WaterDropListView>

2.implements the WaterDropListView.IWaterDropListViewListener in your Activity or Fragment.

Public class MainActivity extends Activity implements WaterDropListView.IWaterDropListViewListener

When pulling to refresh,the ``` public void onRefresh()

When pulling to load moer,the ```
public void onLoadMore()
```will be called    
3.Then you can use it just like the ListView.    
##Summary
If you have any problem ,please let me know! Hope you like it!   
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-WaterDropListView-green.svg?style=flat)](https://android-arsenal.com/details/1/2078)

waterdroplistview's People

Contributors

theone10211024 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.