• Stars
    star
    528
  • Rank 83,941 (Top 2 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Adapter terminator, including DataBinding, any ViewGroup, list(Rv, Lv ). Write Adapter, it is enough .Adapter终结者,包含DataBinding,任意ViewGroup,Rv、Lv列表。写Adapter,有它就够了

all-base-adapter

Adapter 终结者

Adapter终结者,包含DataBinding,任意ViewGroup,Rv、Lv列表。写Adapter,有它就够了

Some base Adapters apply to any ViewGroup. Such as LinearLayout, ScrollView, and custom ViewGroups. Of course, including RecyclerView, ListView ..

一些Base Adapter,适用于任意ViewGroup。像LinearLayout,ScrollView以及自定义的ViewGroup。当然也包括RecyclerView,ListView。

现在也加入了DataBinding用的BaseAdapter。

Related posts:

相关博文: ViewGroup 篇 封装博文

DataBinding 篇 封装博文

If you like, point a star .Thank you very much!

喜欢随手点个star 多谢

The ultimate goal:

最终的目标:

To meet all the development needs of needs adapter for ViewGroup

满足开发中所有需要adapter需求的ViewGroup。

Where to find me:

在哪里找到我:

My github:

我的github:

https://github.com/mcxtzhang

My CSDN Blog:

我的CSDN博客:

http://blog.csdn.net/zxt0601

My xitu.io:

我的稀土掘金:

http://gold.xitu.io/user/56de210b816dfa0052e66495

My jianshu:

我的简书:

http://www.jianshu.com/users/8e91ff99b072/timeline


效果一览:

APP首页常见

多种Item,数据结构相同。

这次用横向展示 多种Item,数据结构不同。

文首提到的,一开始是个水平ScrollView

替换成流式布局

使用:

Step 1. Add the JitPack repository to your build file

Step 1. 在项目根build.gradle文件中增加JitPack仓库依赖。

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

Step 2. Add the dependency

    dependencies {
	        compile 'com.github.mcxtzhang:all-base-adapter:V1.8.0'
	}

Step 3.

DataBinding相关点这里

(推荐)ViewGroup V1.5.0版本之后 相关点这里

(弃用)ViewGroup V1.5.0版本之前 相关点这里

About

ViewGroup

to do list

  • 考虑加入复用缓存池
  • 考虑替换onBindView()ItemView->通用的ViewHolder,这样可以少写一些findViewById()代码
  • 整合DataBinding 的通用Adapter入库。
  • 整合 RecyclerView、ListView的通用Adapter入库。
  • 加入一些自定义ViewGroup入库,例如流式布局,九宫格,Banner轮播图。

Update:

Version [V1.8.0] Created [2017 06 12] 1 Suggest to get VGUtil by VGUtil.Builder.

Version [V1.7.0] Created [2017 04 23] 1 Add notifyDatasetChanged() for Adapter,which uses to refresh ViewGroup's UI .(More convenient update views).

Version [V1.6.0] Created [2017 04 21] 1 fix a bug for adding header and multi type for RecyclerView.

Version [V1.5.2] Created [2017 01 13] 1 Add a VGUtil which add views for any viewgroup.(More convenient update views for any viewgroup than ViewGroupUtils).

版本 [V1.5.0] 日期 [2016 12 30] 1 加入复用缓存池,目前默认是缓存5个。类似于RecyclerViewPool。 2 替换onBindView()ItemView->通用的ViewHolder,这样可以少写一些findViewById()代码~ 3 加入了一些自定义ViewGroup:流式布局。 和一个 用于嵌套的FakerGridView,具体情况可见Demo。

2016 12 13 V1.1.0:

  • 加入DataBinding的BaseAdapter
  • 加入RecyclerView、ListView BaseAdapter初版。

More Repositories

1

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。~
Java
3,691
star
2

ZLayoutManager

Some custom LayoutManager .Such as SwipeCard、FLowLayout。一些自定义的LayoutManager,仿探探、人人影视 炫动滑动 卡片层叠 和流式布局等。
Java
2,528
star
3

SuspensionIndexBar

仿美团选择城市、微信通讯录、饿了么点餐列表的导航悬停分组索引列表。
Java
1,868
star
4

AnimShopButton

A shopping cart button with a telescopic displacement rotation animation ...一个带伸缩位移旋转动画的购物车按钮
Java
1,298
star
5

PathAnimView

用于做Path动画的自定义View。 I have a path.I have a view. (Oh~),Path(Anim)View.
Java
1,077
star
6

SwipeCaptcha

Swipe captcha of Android platform. Android 平台的滑动验证码。
Java
714
star
7

SupportDemos

本工程最初仅为DiffUtil的一个Demo,后发展为讲解Google Android Support包内那些常用or冷门有用的工具类的合集。
Java
460
star
8

NestFullListView

ListView、RecyclerView、ScrollView里嵌套ListView 相对优雅的解决方案
Java
244
star
9

Demos

The playground of mcxtzhang....
Java
148
star
10

DataBindingUtils

Some utils about Data Binding.(More easier adapter to write multi type list.) | 一些DataBinding相关的工具类。(一句代码实现多类型列表的Adapter)
Java
9
star
11

csdn-retrofit

CSDN视频授课源码
Java
7
star
12

gradle-plugins

plugins and utils of gralde(groovy).
Groovy
6
star
13

ModularizationDemo

A demo of Modularization.. 大工程组件化的Demo.
Java
6
star
14

react-native-demo

learn ReactNative demos.
JavaScript
3
star
15

mvp-code-creator

A plugin for auto create MVP codes.
Java
2
star
16

tagview

Java
2
star
17

android_playground_as4

1
star
18

DownloadManager

a http download manager
Java
1
star
19

groovy-demo

Demos of groovy
Groovy
1
star
20

TJ-notes

Notes and code of Thinking in Java.
Java
1
star
21

aly-rn

JavaScript
1
star
22

swipe-exchange

A GridView , which item can drag&drop
Java
1
star
23

view-inspector

Java
1
star