All Projects → liaoinstan → Springview

liaoinstan / Springview

Licence: apache-2.0
🔥 A custom view pull to refresh,support ScrollView,ListView,RecyclerView,WebView and all another views, easy to use

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Springview

Smartrefreshlayout
🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
Stars: ✭ 23,185 (+1097.57%)
Mutual labels:  android-ui, pull-to-refresh, header, refreshlayout, pulltorefresh, footer
Pullrefreshlayout
下拉刷新,上拉加载,真实的回弹(overscroll)效果(媲美qq),且大小只有37KB(是其他主流刷新库或回弹库的1/2,1/3,甚至是1/4),同时,自定义header和footer,可以实现任何你想的到的功能(例如:自动触发加载更多、二级刷新等)
Stars: ✭ 639 (-66.99%)
Mutual labels:  pull-to-refresh, header, refreshlayout, pulltorefresh
XCPullToLoadMoreListView
XCPullToLoadMoreListView-下拉加载更多ListView控件(仿QQ、微信聊天对话列表控件)
Stars: ✭ 24 (-98.76%)
Mutual labels:  pulltorefresh, android-ui, pull-to-refresh
Xrefreshview
一个万能的android下拉上拉刷新的框架,完美支持recyclerview
Stars: ✭ 1,685 (-12.96%)
Mutual labels:  android-ui, pull-to-refresh, pulltorefresh
Xrefreshlayout
【已过时,不再更新,请使用更强大的SmartRefreshLayout!】A refresh layout(无侵入下拉刷新和加载布局), can refresh RecyclerView for all LayoutManager, NestedScrollView。
Stars: ✭ 127 (-93.44%)
Mutual labels:  pull-to-refresh, refreshlayout, pulltorefresh
AnimatedPullToRefresh-master
A Cool pull to refresh widget provided with character animation in header with user defined text. Customise your widget and show off your home screen!!
Stars: ✭ 38 (-98.04%)
Mutual labels:  pulltorefresh, pull-to-refresh
SwipeRefreshPlus
参考swiperefreshlayout添加下拉加载更多
Stars: ✭ 24 (-98.76%)
Mutual labels:  android-ui, refreshlayout
Brv
Android上最强大的RecyclerView库
Stars: ✭ 345 (-82.18%)
Mutual labels:  pull-to-refresh, refreshlayout
Web Pull To Refresh
A native-like JavaScript pull to refresh implementation for the web.
Stars: ✭ 530 (-72.62%)
Mutual labels:  pull-to-refresh, pulltorefresh
Android Advancedrecyclerview
RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)
Stars: ✭ 5,172 (+167.15%)
Mutual labels:  header, footer
Pulltorefresh H5 Iscroll
基于IScroll5的PullToRefresh实现.。提供多套皮肤机制,便于拓展!
Stars: ✭ 56 (-97.11%)
Mutual labels:  pull-to-refresh, pulltorefresh
ParticlesRefreshLayout-android
Particles Refresh Layout library for Android
Stars: ✭ 15 (-99.23%)
Mutual labels:  pull-to-refresh, refreshlayout
Pullrefresh
前端, 下拉刷新
Stars: ✭ 7 (-99.64%)
Mutual labels:  pull-to-refresh, pulltorefresh
Qrefreshlayout
下拉刷新,上拉加载更多,自动加载更多,用法同SwipeRefreshLayout,兼容所有view,兼容nested滚动,可以自定义header footer,支持下拉到二楼
Stars: ✭ 75 (-96.13%)
Mutual labels:  pull-to-refresh, refreshlayout
goRefresh
让下拉刷新炫酷起来~轻松接入lottie动画,支持listview recyclerview scrollerview webview 。同时支持listview和recyclerview上拉加载
Stars: ✭ 24 (-98.76%)
Mutual labels:  pulltorefresh, refreshlayout
Swiperefreshlayout
swipeRefreshLayout refresh pull-to-refresh
Stars: ✭ 26 (-98.66%)
Mutual labels:  pull-to-refresh, refreshlayout
Liquidrefreshlayout
Liquid Refresh Layout is a simple SwipeToRefresh library that helps you easily integrate SwipeToRefresh and performs simple clean liquid animation
Stars: ✭ 114 (-94.11%)
Mutual labels:  pull-to-refresh, refreshlayout
Minirefresh
优雅的H5 下拉刷新。零依赖,高性能,多主题,易拓展。(A Graceful HTML5 Drop-Down-Refresh Plugin. )
Stars: ✭ 1,525 (-21.23%)
Mutual labels:  pull-to-refresh, pulltorefresh
Android Multi Theme Ui
Android multi theme UI implementation with day night mode. This repository cover theme changes at runtime, user can select theme from pre-defined multiple themes and changes reflect dynamically on the go.
Stars: ✭ 142 (-92.67%)
Mutual labels:  android-ui
Smartswipe
An android library to make swipe more easier and more powerful. Android各种侧滑,有这一个就够了
Stars: ✭ 1,911 (-1.29%)
Mutual labels:  refreshlayout

More, please visit:My CSDN     apk demo:download     中文文档:中文文档

SpringView

SpringView is one provides the function of the upper and lower drag and drop components, can be highly customized, implement all kinds of drop-down \ pull painting effect, implementation in the demo: imitation ali travel, imitation Meituan, imitation QQ drop-down brush red envelopes, imitation acfun etc., is fully compatible with the source control such as ListView, RecyclerView, ScrollView, WebView, etc., using a simple, easily customize their style of drag and drop page 这里写图片描述

SpringView Individual independence will head/foot, almost achieve the effect of whatever you want, just need to inherit BaseHeader (or Footer) to implement the interface

SpringView Can dynamically replace the head/tail, you just need to set up different Footer:springView.setHeader(MyHeader());

SpringView Multi-touch support, can two hands drag and drop in a row, you can customize some interesting results

SpringView Provides two methods for drag and drop (overlap and follow), can be dynamically switching

SpringView For lazy people don't want to go to the custom head/tail provides 7 kinds of the default implementation (mimics the ali, tencent, Meituan etc. Various style) as follows, will continue to increase

SpringView support AppBarLayout

这里写图片描述 这里写图片描述 这里写图片描述 这里写图片描述 这里写图片描述 这里写图片描述 这里写图片描述

📌new:

这里写图片描述 这里写图片描述 这里写图片描述 这里写图片描述

How to use SpringView

Add Spring View in the layout file, note that Spring View and ScrollView have the same limitation: only one child element:

	<com.liaoinstan.springview.widget.SpringView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:header="@layout/myheader"
            app:footer="@layout/myfooter">

            <ListView RecyclerView ScrollView or others
                android:layout_width="match_parent"
                android:layout_height="match_parent"/>

     </com.liaoinstan.springview.widget.SpringView>

Of course, you can also add the header/footer in java code:

	springView.setHeader(new DefaultHeader(this));
	springView.setFooter(new DefaultFooter(this));

Add Listener

If you need to deal with the case, just add a listener in code:

springView.setListener(new SpringView.OnFreshListener() {
      @Override
      public void onRefresh() {
      }
      @Override
      public void onLoadmore() {
      }
});

Get SpringView

use Gradle:

dependencies {

   //SpringView core library (only include DefaultHeader/Footer)
   implementation 'com.liaoinstan.springview:library:1.7.0'

   //other Headers/Footers, choose one or more that you like
   implementation 'com.liaoinstan.springview:AcfunHeader:1.7.0'         //AcFun style (header and footer)
   implementation 'com.liaoinstan.springview:AliHeader:1.7.0'           //Alitrip style (header and footer)
   implementation 'com.liaoinstan.springview:MeituanHeader:1.7.0'       //Meituan style (header and footer)
   implementation 'com.liaoinstan.springview:RotationHeader:1.7.0'      //Mechanical gear style (header and footer)
   implementation 'com.liaoinstan.springview:WeixinHeader:1.7.0'        //WeChat Mini Program header(only header)
   implementation 'com.liaoinstan.springview:DuHeader:1.7.0'		//Du app header(only header)
}

or Maven:

<dependency>
  <groupId>com.liaoinstan.springview</groupId>
  <artifactId>library</artifactId>
  <version>1.7.0</version>
  <type>pom</type>
</dependency>

Update log

v1.7.0

  • Add new a header (DuHeader), and a auto-scrolling Footer (AutoFooter).
  • Add a new type SCROLL. Based on this mode, effects such as scrolling to the bottom and automatic loading can be achieved.
  • Header / Footer now has setType () method, you can set different Type for Header and Footer respectively.
  • Fix issus.

v1.6.0

  • Add a new header (WeixinHeaderV2) for new version of WeChat (WeChat 7).
  • The movement parameter of SpringView (MovePara) no longer affects both Header and Footer. BaseHeader/Footer now has a new getMovePara() interface that allows you to set different movement parameters for Header and Footer to match different drag-and-drop feel.(if you don't implement the interface, SpringView is still compatible with the previous rules).
  • Update to Android X.
  • Fixed several drag and drop stickiness issues, and callFresh method callback issues.

v1.5.1

  • Fix bug when nested layout, fix bug callFresh() can't spring back when set SpringView Give.NONE.

v1.5.0

  • headers /footers split off from SpringView library(except DefaultHeader/Footer),simplified core library,now core library's size only 26KB,You can import headers/footers separately

v1.4.0

  • New function setMovePara(),a new header for weixin:WeixinHeader,a new type DRAG like SwipeRefreshLayout:spring.setType(Type.DRAG)

v1.3.3

  • Optimize several experiential issues,Added onFinishFreshAndLoadDelay(int delay), callFreshDelay(int delay) method,Optimizing performance with BottomSheetBehavior,Optimize the performance used in BottomSheetDialog

v1.3.2

  • Fix the bug of the linkage damping of AppBarLayout in the case of null data, new setEnableFooter(Boolean), setEnableHeader(Boolean) disable or enable header/footer.

v1.3.0

  • Support AppBarLayout,fix sliding conflict

v1.2.7

  • Bug fix

v1.2.6

  • Padding bug fix

v1.2.5

  • Add setEnable(boolean) function

v1.2.4

  • Add callFresh() method, used to call the refresh operation manual
  • Fixes the lateral sliding conflict

v1.2.2

  • Repair the callback refresh many times

v1.2.1

  • Repair the click event occasional failure problem

Feedback

If there are any questions or Suggestions, please feedback to my email: [email protected]; Or in my blog

If it works to you, please give me a star for my hardwork ,thank you

More

More, please visit:my CSDN blog

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