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

all-base-adapter

项目地址: mcxtzhang/all-base-adapter
简介:Some base Adapters apply to addView quickly for any ViewGroup. Such as LinearLayout, ScrollView, and custom ViewGroups. Of course, including RecyclerView, ListView in the plan .. 一些 Base Adapter,适用于为任意 ViewGroup 快速 addView。像 LinearLayout,ScrollView 以及自定义的 ViewGroup。当然也包括 RecyclerView,ListView.. (不断更新)
更多: 作者    提 Bug    示例 APK   
标签:
BaseAdapter- 快速开发-

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 初版。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值