Home

Awesome

:running:BGABaseAdapter-Android:running:

目录

功能介绍

在 AdapterView 和 RecyclerView 中通用的 Adapter 和 ViewHolder。

效果图与示例 apk

简化 GridView/ListView 适配器RecyclerView/Header/Footer/拖拽排序
adapterviewrv_and_rvbinding
RecyclerView 多 ItemType吸顶分类索引
rv_multi_itemsticky
仿美团外卖点餐界面左右联动
cascade

点击下载 BGABaseAdapterDemo.apk 或扫描下面的二维码安装

BGABaseAdapterDemo apk文件二维码

使用

Gradle 依赖

implementation 'androidx.recyclerview:recyclerview:latestVersion'
implementation 'com.github.bingoogolapple:BGABaseAdapter-Android:latestVersion'

简化 AdapterView 的子类(如 ListView、GridView)的适配器的编写

AdapterViewAdapter.java

简化 RecyclerView 的适配器的编写

RvAdapter.java

RecyclerView 结合 DataBinding 使用时简化 RecyclerView 的适配器的编写

RvBindingFragment.java

BGADivider 用于简化 RecyclerView 分割线的编写,以及轻松实现基于 RecyclerView 的悬浮分类索引

RvStickyFragment.java

仿美团外卖点餐界面左右联动

RvCascadeFragment.java

代码是最好的老师,详细用法请查看 demo:feet:

感谢

作者联系方式

个人主页邮箱
<a href="https://www.bingoogolapple.cn" target="_blank">bingoogolapple.cn</a><a href="mailto:bingoogolapple@gmail.com" target="_blank">bingoogolapple@gmail.com</a>
个人微信号微信群公众号
<img width="180" alt="个人微信号" src="https://github.com/bingoogolapple/bga-god-assistant-config/raw/main/images/BGAQrCode.png"><img width="180" alt="微信群" src="https://github.com/bingoogolapple/bga-god-assistant-config/raw/main/images/WeChatGroup1QrCode.jpg"><img width="180" alt="公众号" src="https://github.com/bingoogolapple/bga-god-assistant-config/raw/main/images/GongZhongHao.png">
个人 QQ 号QQ 群
<img width="180" alt="个人 QQ 号" src="https://github.com/bingoogolapple/bga-god-assistant-config/raw/main/images/BGAQQQrCode.jpg"><img width="180" alt="QQ 群" src="https://github.com/bingoogolapple/bga-god-assistant-config/raw/main/images/QQGroup1QrCode.jpg">

打赏支持作者

如果您觉得 BGA 系列开源库或工具软件帮您节省了大量的开发时间,可以扫描下方的二维码打赏支持。您的支持将鼓励我继续创作,打赏后还可以加我微信免费开通一年 上帝小助手浏览器扩展/插件开发平台 的会员服务

微信QQ支付宝
<img width="180" alt="微信" src="https://github.com/bingoogolapple/bga-god-assistant-config/raw/main/images/donate-wechat.jpg"><img width="180" alt="QQ" src="https://github.com/bingoogolapple/bga-god-assistant-config/raw/main/images/donate-qq.jpg"><img width="180" alt="支付宝" src="https://github.com/bingoogolapple/bga-god-assistant-config/raw/main/images/donate-alipay.jpg">

作者项目推荐

License

Copyright 2015 bingoogolapple

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.