Skip to content

gao746700783/smartadapter

Repository files navigation

SmartRecyclerView-master

Description

开始使用RecyclerView已经好几年了,使用都局限在最基本的使用方式上,只有在用到某个特性时才会去研究一番,这次索性把以前用到过 的,和其他类似的布局中用到过的都一并整理下,方便以后的使用;

相似的ListView,GridView ,都已经有大量的开源框架了,实现的够好,优化也基本上无盲点了,唯独RecyclerView感觉用过几个,不 是特别好用,总是出现各种各样的问题,累觉不爱,不如从头写一个来的彻底。

基本使用方法,经常使用到的方法,哈哈,都比较完备了

贴上google官方地址: https://developer.android.google.cn/reference/android/support/v7/widget/RecyclerView.html

介绍如下:

A flexible view for providing a limited window into a large data set.

Features:

  • 基本用法
  • 分割线DividerItemDecoration
  • 点击效果
  • 下拉刷新和上拉加载更多
  • 空状态(EmptyView),网络异常状态
  • Drag-n-drop
  • 线性布局/表格布局/流布局切换
  • Filter/search
  • 和ListView和GridView的无缝切换
  • Animation
  • 和SearchView的结合使用
  • 加载item 动画,动画类型-透明度渐变,缩放,左移,右移等,动画执行时间设置,动画差值器设置;
  • multiple type support
  • footer and header

Usage

Quick Setup (Basic Usage)

  1. Using Gradle:

repositories { jcenter() } dependencies { ... compile 'com.smart:irecyclerview:0.0.1' }

or grab via Maven,not work here

<dependency> <groupId>com.smart</groupId> <artifactId>irecyclerview</artifactId> <version>0.0.1</version> </dependency>

  1. Usage:

<com.marshalchen.ultimaterecyclerview.UltimateRecyclerView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/ultimate_recycler_view" />

For more details, you can read the Wiki and the demo of the project.

Version Log

TODO

Screenshot

Thanks

Donations

License

to be continued...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published