All Projects → songixan → Smilerefresh

songixan / Smilerefresh

微笑下拉刷新。这是在 SwipeRefreshLayout基础上修改的下拉刷新库。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Smilerefresh

Shswiperefreshlayout
Android 升级版 SwipeRefreshLayout,支持RecyclerView、ScrollView等大部分组件,下拉刷新(Refresh)和上拉加载(Loadmore),支持自定义HeaderView和FooterView
Stars: ✭ 236 (+16.26%)
Mutual labels:  recyclerview, listview, refresh
Swipemenu
[DEPRECATED] A swipe menu for horizontal/vertical, support left/right and top/bottom directions
Stars: ✭ 817 (+302.46%)
Mutual labels:  recyclerview, listview
Superadapter
[Deprecated]. 🚀 Adapter(BaseAdapter, RecyclerView.Adapter) wrapper for Android. 一个Adapter同时适用RecyclerView、ListView、GridView等。
Stars: ✭ 638 (+214.29%)
Mutual labels:  recyclerview, listview
Ultimaterefreshview
UltimateRefreshView 实现下拉刷新,上拉加载更多的轻量级库;支持RecyclerView ,ListView ,ScrollView & WebView
Stars: ✭ 64 (-68.47%)
Mutual labels:  recyclerview, listview
Brv
Android上最强大的RecyclerView库
Stars: ✭ 345 (+69.95%)
Mutual labels:  recyclerview, listview
Imageviewer
🔮图片浏览器,支持图片手势缩放、拖拽等操作,`自定义View`的模式显示,自定义图片加载方式,更加灵活,易于扩展,同时也适用于RecyclerView、ListView的横向和纵向列表模式,最低支持版本为Android 3.0及以上...
Stars: ✭ 363 (+78.82%)
Mutual labels:  recyclerview, listview
Multi type list view
A flutter customer ListView that displays multiple widget types.
Stars: ✭ 47 (-76.85%)
Mutual labels:  recyclerview, listview
Boardview
A draggable boardview for java android (Kanban style)
Stars: ✭ 309 (+52.22%)
Mutual labels:  recyclerview, listview
Collapsingrefresh
AppBarLayout+ViewPager+RecyclerView的刷新功能
Stars: ✭ 69 (-66.01%)
Mutual labels:  recyclerview, refresh
Videolistplayer
Play video in ListView or RecyclerView
Stars: ✭ 1,308 (+544.33%)
Mutual labels:  recyclerview, listview
Swipemenulayout
🔥一个零耦合的侧滑菜单,支持RecyclerView、ListView、GridView等不同条目布局,支持菜单在左或在右,可选滑动阻塞,是否禁用等功能
Stars: ✭ 120 (-40.89%)
Mutual labels:  recyclerview, listview
Recyclerlistview
High performance listview for React Native and web!
Stars: ✭ 4,033 (+1886.7%)
Mutual labels:  recyclerview, listview
Giraffeplayer2
out of the box android video player(support lazy load, ListView/RecyclerView and hight performance)
Stars: ✭ 344 (+69.46%)
Mutual labels:  recyclerview, listview
Adapter
A quick adapter library for RecyclerView, GridView, ListView, ViewPager, Spinner
Stars: ✭ 376 (+85.22%)
Mutual labels:  recyclerview, listview
Swipedelmenulayout
The most simple SwipeMenu in the history, 0 coupling, support any ViewGroup. Step integration swipe (delete) menu, high imitation QQ, iOS. ~史上最简单侧滑菜单,0耦合,支持任意ViewGroup。一步集成侧滑(删除)菜单,高仿QQ、IOS。~
Stars: ✭ 3,376 (+1563.05%)
Mutual labels:  recyclerview, listview
Google Books Android Viewer
Android library to bridge between RecyclerView and sources like web page or database. Includes demonstrator (Google Books viewer)
Stars: ✭ 37 (-81.77%)
Mutual labels:  recyclerview, listview
Easyadapter
Android 轻量级适配器,简化使用,适应所有的AbsListView、RecyclerView。支持HeaderView与FooterView~
Stars: ✭ 160 (-21.18%)
Mutual labels:  recyclerview, listview
react-recycled-scrolling
Simulate normal scrolling by using only fixed number of DOM elements for large lists of items with React Hooks
Stars: ✭ 26 (-87.19%)
Mutual labels:  listview, recyclerview
adapster
Android library designed to enrich and make your RecyclerView adapters more SOLID
Stars: ✭ 17 (-91.63%)
Mutual labels:  listview, recyclerview
Countdowntask
⌛️A countdown library for Android.
Stars: ✭ 64 (-68.47%)
Mutual labels:  recyclerview, listview

SmileRefresh

这里写图片描述

####描述: PullToRefreshView 是基于v4库的SwipeRefreshLayout上修改的动画的,SwipeRefreshLayout 有的方法PullToRefreshView 也有。 ####引入: 1.在Properties的build.gradle 添加

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

    }
}

2.在Module的build.gradle 添加

    compile 'com.github.songixan:SmileRefresh:1.1'

####用法:

  1. xml添加

    	<com.song.refresh_view.PullToRefreshView
    	    xmlns:android="http://schemas.android.com/apk/res/android"
    	    xmlns:tools="http://schemas.android.com/tools"
    	    android:layout_width="match_parent"
    	    android:layout_height="match_parent"
    	    android:id="@+id/refreshView"
    	    tools:context="com.songxian.smilerefresh.MainActivity">
    	
    	    <ListView
    	        android:id="@+id/list"
    	        android:layout_width="match_parent"
    	        android:layout_height="match_parent"></ListView>
    	
    	</com.song.refresh_view.PullToRefreshView>
    
  2. java设置

  • 初始化
		mRefreshView = (PullToRefreshView) findViewById(R.id.refreshView);
		mRefreshView.setColorSchemeColors(Color.RED,Color.BLUE); // 颜色
		mRefreshView.setSmileStrokeWidth(8); // 设置绘制的笑脸的宽度
		mRefreshView.setSmileInterpolator(new LinearInterpolator()); // 笑脸动画转动的插值器
		mRefreshView.setSmileAnimationDuration(2000); // 设置笑脸旋转动画的时长
				//设置下拉刷新监听
			mRefreshView.setOnRefreshListener(new PullToRefreshView.OnRefreshListener() { 
			    @Override
			    public void onRefresh() {
			        requestData(); //请求数据
			    }
			
			});
  • 刷新完成
// 请求数据完成
 mRefreshView.setRefreshing(false);

博客:http://blog.csdn.net/qq_32464809/article/details/52809722

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