All Projects → zhouphenix → Multi-SwipeToRefreshLayout

zhouphenix / Multi-SwipeToRefreshLayout

Licence: Apache-2.0 license
多方向支持刷新view通用布局

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Multi-SwipeToRefreshLayout

Smartrefreshlayout
🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
Stars: ✭ 23,185 (+136282.35%)
Mutual labels:  refreshlayout, overscroll
Springview
🔥 A custom view pull to refresh,support ScrollView,ListView,RecyclerView,WebView and all another views, easy to use
Stars: ✭ 1,936 (+11288.24%)
Mutual labels:  refreshlayout
Brv
Android上最强大的RecyclerView库
Stars: ✭ 345 (+1929.41%)
Mutual labels:  refreshlayout
Meibasemodule
A powerful multi-function library that extended base activity for Android!
Stars: ✭ 78 (+358.82%)
Mutual labels:  refreshlayout
Pullrefreshlayout
下拉刷新,上拉加载,真实的回弹(overscroll)效果(媲美qq),且大小只有37KB(是其他主流刷新库或回弹库的1/2,1/3,甚至是1/4),同时,自定义header和footer,可以实现任何你想的到的功能(例如:自动触发加载更多、二级刷新等)
Stars: ✭ 639 (+3658.82%)
Mutual labels:  refreshlayout
Xrefreshlayout
【已过时,不再更新,请使用更强大的SmartRefreshLayout!】A refresh layout(无侵入下拉刷新和加载布局), can refresh RecyclerView for all LayoutManager, NestedScrollView。
Stars: ✭ 127 (+647.06%)
Mutual labels:  refreshlayout
SwipeRefreshPlus
参考swiperefreshlayout添加下拉加载更多
Stars: ✭ 24 (+41.18%)
Mutual labels:  refreshlayout
React Native Smartrefreshlayout
基于android SmartRefreshLayout https://github.com/scwang90/SmartRefreshLayout 开发的插件,可提供类似ios的弹性刷新
Stars: ✭ 240 (+1311.76%)
Mutual labels:  refreshlayout
Smartswipe
An android library to make swipe more easier and more powerful. Android各种侧滑,有这一个就够了
Stars: ✭ 1,911 (+11141.18%)
Mutual labels:  refreshlayout
Qrefreshlayout
下拉刷新,上拉加载更多,自动加载更多,用法同SwipeRefreshLayout,兼容所有view,兼容nested滚动,可以自定义header footer,支持下拉到二楼
Stars: ✭ 75 (+341.18%)
Mutual labels:  refreshlayout
Smoothrefreshlayout
一款支持上下拉刷新、越界回弹、二级刷新、横向刷新、拉伸回弹、平滑滚动、嵌套滚动的多功能刷新控件
Stars: ✭ 1,166 (+6758.82%)
Mutual labels:  refreshlayout
Widgetlayout
自定义ViewGroup的集合(有 kotlin 实现分支):提高编写效率和 UI 绘制性能,少嵌套,易用易扩展。
Stars: ✭ 130 (+664.71%)
Mutual labels:  refreshlayout
Flutter refresh
flutter refresh 上拉刷新 下拉加载 进度条
Stars: ✭ 51 (+200%)
Mutual labels:  refreshlayout
Bgarefreshlayout Android
多种下拉刷新效果、上拉加载更多、可配置自定义头部广告位
Stars: ✭ 4,261 (+24964.71%)
Mutual labels:  refreshlayout
Krefreshlayout
强大的下拉刷新库,定制任意Header。比官方SwipRefrehLayout处理更加友好(Kotlin、Java双版本)
Stars: ✭ 217 (+1176.47%)
Mutual labels:  refreshlayout
Net
Android上强大的网络请求
Stars: ✭ 344 (+1923.53%)
Mutual labels:  refreshlayout
Liquidrefreshlayout
Liquid Refresh Layout is a simple SwipeToRefresh library that helps you easily integrate SwipeToRefresh and performs simple clean liquid animation
Stars: ✭ 114 (+570.59%)
Mutual labels:  refreshlayout
goRefresh
让下拉刷新炫酷起来~轻松接入lottie动画,支持listview recyclerview scrollerview webview 。同时支持listview和recyclerview上拉加载
Stars: ✭ 24 (+41.18%)
Mutual labels:  refreshlayout
Shswiperefreshlayout
Android 升级版 SwipeRefreshLayout,支持RecyclerView、ScrollView等大部分组件,下拉刷新(Refresh)和上拉加载(Loadmore),支持自定义HeaderView和FooterView
Stars: ✭ 236 (+1288.24%)
Mutual labels:  refreshlayout
React Native Mjrefresh
基于ios MJRefresh https://github.com/CoderMJLee/MJRefresh 开发的插件,可提供自定义的弹性刷新
Stars: ✭ 140 (+723.53%)
Mutual labels:  refreshlayout

Multi-SwipeToRefreshLayout

多方向支持刷新布局

更新(Update)

2017-3-26

  • 解决v1.0.1发布失败问题,上次发布没注意是否成功(/ω╲)(✿◡‿◡), 解决具体参考issue--“jitpack发布失败问题”

2017-3-12

2017-3-11

  • 添加了一个MD风格的header
  • 添加阻尼效果(刷新怎么能少了阻尼呢 o( ̄▽ ̄)d)

2017-3-7

  • 比较粗糙刷新版提交(效果图),demo暂时用的RecyclerView,细节还未做处理

2017-3-3

  • 抽屉版提交

2017-3-1

  • 提交了WebView,ViewPager Demo及效果,准备发布OverScrollLayout,下一版做刷新

2017-2-28

  • 提交OverScrollLayout,ScrollView版已测试No problem
  • 适配了下普通布局、RecyclerView、WebView、ViewPager(左右),效果都OK

关于(About)

初衷(Intention)

-->想要实现一个支持多方向的多功能刷新布局,解决刷新布局在方向上的单一问题

  • 可以OverScroll,可以定制OverScroll状态下显示的布局
  • 可以是抽屉(反正我喜欢显示内容多,菜单没事儿显示那么多干嘛)
  • 可以刷新,可以定制刷新状态下显示的布局

怎么做(How to do):

考虑到功能有点多,可能毅力不行,拆分下,做成两到三个项目,而且方便维护不是

那么(So):

事要一件一件做,饭要一口一口吃。

download

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
-----------------------------------------------------------
dependencies {
         compile 'com.github.zhouphenix:Multi-SwipeToRefreshLayout:1.0.3'
}

exclude

compile 'com.android.support:appcompat-v7:25.2.0'

使用(Usage)

  • OverScrollLayout

      <lib.phenix.com.swipetorefresh.OverScrollLayout xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:app="http://schemas.android.com/apk/res-auto"
          android:id="@+id/overscroll"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          app:bottomView="@layout/layout_horizontal"
          app:contentLayoutId="@+id/scroll" //主布局id
          app:layout_behavior="@string/appbar_scrolling_view_behavior"
          app:leftView="@layout/layout_vertical"
          //app:rightView="@layout/layout_vertical" 空View实现
          app:swipeDirection="left|top|right|bottom"
          app:topView="@layout/layout_horizontal">
    
          <ScrollView
              android:id="@+id/scroll"
              android:layout_width="match_parent"
              android:layout_height="wrap_content">
          </ScrollView>
      </lib.phenix.com.swipetorefresh.OverScrollLayout>
    
  • SwipeToRefreshLayout

xml中配置

    <lib.phenix.com.swipetorefresh.SwipeToRefreshLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:id="@+id/refresh"
        android:background="@color/colorAccent"
        app:swipeDirection="left|top|right|bottom"
        app:contentLayoutId="@+id/recyclerView"
        app:topView="@layout/layout_horizontal"
        app:bottomView="@layout/layout_horizontal"
        app:rightView="@layout/layout_vertical"
        app:leftView="@layout/layout_vertical"
        android:layout_height="wrap_content"
        android:layout_width="match_parent">
    
        <android.support.v7.widget.RecyclerView
            android:id="@+id/recyclerView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>
    </lib.phenix.com.swipetorefresh.SwipeToRefreshLayout>

java中调用,这里仿照QQ写了一个Header、footer分别提供了下拉刷新和上拉加载更多

    refresh = (SwipeToRefreshLayout) v.findViewById(R.id.refresh);
            refresh.setTopView(new QQHeader(getActivity()));
            refresh.setOnRefreshCallback(new SwipeToRefreshLayout.OnRefreshCallback() {
                @Override
                public void onRefresh(int direction) {
                    refresh.postDelayed(new Runnable() {
                        @Override
                        public void run() {
                            refresh.refreshCompleted();
                        }
                    }, 3000);
                }
            });
    
            refresh.setBottomView(new LoadMoreFooter(getActivity()));

效果

  • OverScrollLayout

OverScrollLayout效果gif

OverScrollLayout效果2gif

  • 抽屉效果 OverScrollLayout效果2gif

  • 刷新效果 OverScrollLayout效果2gif

Thanks

  • https://github.com/jianghejie/XRecyclerView

      Copyright 2017 zhouphenix
      
         Licensed under the Apache License, Version 2.0 (the "License");
         you may not use this file except in compliance with the License.
         You may obtain a copy of the License at
      
             http://www.apache.org/licenses/LICENSE-2.0
      
         Unless required by applicable law or agreed to in writing, software
         distributed under the License is distributed on an "AS IS" BASIS,
         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         See the License for the specific language governing permissions and
         limitations under the License.
    
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].