All Projects → luhaoaimama1 → ZRefreshLayout

luhaoaimama1 / ZRefreshLayout

Licence: other
一个可以全局随意配置头部的下拉刷新与上拉加载库;

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to ZRefreshLayout

PowerRefresh
Support nested scroll for refresh and load more.
Stars: ✭ 64 (+113.33%)
Mutual labels:  loadmore, refreshlayout
SwipeRefreshPlus
参考swiperefreshlayout添加下拉加载更多
Stars: ✭ 24 (-20%)
Mutual labels:  loadmore, refreshlayout
goRefresh
让下拉刷新炫酷起来~轻松接入lottie动画,支持listview recyclerview scrollerview webview 。同时支持listview和recyclerview上拉加载
Stars: ✭ 24 (-20%)
Mutual labels:  loadmore, refreshlayout
React Reorder
Drag & drop, touch enabled, reorderable / sortable list, React component
Stars: ✭ 209 (+596.67%)
Mutual labels:  drop
react-native-dnd-board
A drag and drop Kanban board for React Native.
Stars: ✭ 41 (+36.67%)
Mutual labels:  drop
HorizontalRefreshLayout
a android layout widget for horizontal drag refresh action (viewpager or recyclerview)
Stars: ✭ 75 (+150%)
Mutual labels:  refreshlayout
Android-RecyclerView-Loadmore
RecyclerView Loadmore and Swipe refresh for LinearLayout GridLayout and StaggeredLayout
Stars: ✭ 27 (-10%)
Mutual labels:  loadmore
Fancytree
JavaScript tree view / tree grid plugin with support for keyboard, inline editing, filtering, checkboxes, drag'n'drop, and lazy loading
Stars: ✭ 2,398 (+7893.33%)
Mutual labels:  drop
Chopin
A Android Refresh Layout including refresh header and load more and sticky header
Stars: ✭ 15 (-50%)
Mutual labels:  refreshlayout
solid-dnd
A lightweight, performant, extensible drag and drop toolkit for Solid JS.
Stars: ✭ 251 (+736.67%)
Mutual labels:  drop
yii2-menu
Menu menager, dynamic Yii2 widget. Active menu items
Stars: ✭ 26 (-13.33%)
Mutual labels:  drop
vuejs-loadmore
A pull-down refresh and pull-up loadmore scroll component for Vue.js. Vue上拉加载下拉刷新组件
Stars: ✭ 62 (+106.67%)
Mutual labels:  loadmore
swa-price-drop
Check for Southwest Airlines price drops for specific outbound and return flight numbers.
Stars: ✭ 14 (-53.33%)
Mutual labels:  drop
Ngx File Drop
Angular 11 file and folder drop library
Stars: ✭ 220 (+633.33%)
Mutual labels:  drop
ParticlesRefreshLayout-android
Particles Refresh Layout library for Android
Stars: ✭ 15 (-50%)
Mutual labels:  refreshlayout
Droppable
A javascript library to give file dropping super-powers to any HTML element.
Stars: ✭ 204 (+580%)
Mutual labels:  drop
Multi-SwipeToRefreshLayout
多方向支持刷新view通用布局
Stars: ✭ 17 (-43.33%)
Mutual labels:  refreshlayout
drop
A LÖVE visualizer and music player
Stars: ✭ 17 (-43.33%)
Mutual labels:  drop
WX MultiTabList
微信小程序,多个Tab列表的上下拉刷新方案
Stars: ✭ 25 (-16.67%)
Mutual labels:  loadmore
KanbanDragDropiOS
Kanban Board using Drag & Drop iOS API
Stars: ✭ 95 (+216.67%)
Mutual labels:  drop

中文版文档

ZRefreshLayout

A global random configuration head , drop-down refresh and loadMore library;

Feature

  • support refresh and loadMore
  • support Timeout automatically complete the action
  • support nest scroll
  • support All the View:ImageView,FrameLayout,ListView, GridView, ScrollView, WebView...
  • support Global configuration (HeaderView's configuration is here,so not have xml's property),and Independent changes
  • support auto refresh
  • support header fixed
  • support refresh's Trigger position
  • support drop-down's position map(as IResistance)
  • support add many childs。because extends FrameLayout(not must be one,because more changeful)

JicPack

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

Step 2. Add the dependency

compile 'com.github.luhaoaimama1:ZRefreshLayout:Latest release'

not anroidX version compile 'com.github.luhaoaimama1:ZRefreshLayout:1.0.19' branch:notAndroidx

Step 3: you need provide

because compileOnly 'androidx.recyclerview:recyclerview:1.0.0'

UML

Preview

header fixed

Meterial Header与Footer

SinaRefreshHeader与LoadFooter

WaveHead

CircleRefresh Head

引用tuesda的CircleView 主要是为了测试延迟功能

Usage

Global configuration

      Config.build()
            .setHeader(new MeterialHead())
            .setFooter(new MeterialFooter())
            .setResistance(new Damping())
            .writeLog(true)
            .perform();

Independent changes

    refresh.setIHeaderView(new SinaRefreshHeader());

header fixed

    refresh.setHeadPin(ZRefreshLayout.HeadPin.PIN)

auto refresh

    refresh.autoRefresh(haveAnimate)

refresh's listener

refresh complete ,Remember to use:zRefreshLayout.refreshComplete();

      refresh.setPullListener(new ZRefreshLayout.PullListener() {
               @Override
               public void refresh(final ZRefreshLayout zRefreshLayout) {
                   tv.postDelayed(new Runnable() {
                       @Override
                       public void run() {
                           tv.setText("刷新完毕:" + i++);
                           zRefreshLayout.refreshComplete();
                       }
                   }, 500);
               }
           });

loadMore's Listener

if not setLoadMoreListener,not have loadMore feature;

loadMore complete ,Remember to use:zRefreshLayout.loadMoreComplete();

         refresh.setPullListener(new ZRefreshLayout.PullListener() {
                  @Override
                  public void refresh(final ZRefreshLayout zRefreshLayout) {
                      tv.postDelayed(new Runnable() {
                          @Override
                          public void run() {
                              tv.setText("刷新完毕:" + i++);
                              zRefreshLayout.refreshComplete();
                          }
                      }, 500);
                  }
              });

HeadView and FooterView 's custom and More advanced features,please see Wiki Document;;

Reference&Thanks:

https://github.com/lcodecorex/TwinklingRefreshLayout

https://github.com/tuesda/CircleRefreshLayout

https://github.com/android-cjj/Android-MaterialRefreshLayout

https://github.com/desmond1121/Android-Ptr-Comparison

https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].