RapidLib
Brife
一套项目级别的综合框架实践,帮助提高开发效率,缩减开发时间,有问题欢迎提issue。
Gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
dependencies {
compile 'com.github.MarnoDev:RapidLib:最新版本号'
如:compile 'com.github.MarnoDev:RapidLib.v1.0.0'
}
Function
- 【Basic-Xxxx】开头是通用基类,目前有BasicActivity和BasicFragment
- 【Rapid-Xxxx】开头的是快速创建常见功能页面
- 创建支持手势返回的Activity
- 沉浸式状态栏(一句代码实现)
- 万能适配器(ListView、GridView,RecyclerView)
- Fragment懒加载,Activity可见时加载
- 下拉刷新、上拉加载
- 可添加多个Header和Footer
- manager类是三方库二次封装,目前有GlideManager和MLog(Logger封装)两个类
- 常用工具类(拆分为 EasyUtilCode 维护),但是默认已经集成在该库中
- Retrofit请求与Activity、Fragment生命周期绑定,需要手动调用bindUntilEvent()方法
TODO List
- 快速创建启动页和引导页
- 优化刷新和加载页面的代码
- 将retrofit二次封装
- MVP架构
Guide
Thanks
- https://github.com/CymChad/BaseRecyclerViewAdapterHelper
- https://github.com/ThePacific/adapter
- https://github.com/H07000223/FlycoTabLayout
- https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh
- https://github.com/bingoogolapple/BGABanner-Android