AndriodDevelopLibrary
Lifecycle->ViewModel+LiveData+Repository
Install / Use
/learn @Sum-sdl/AndriodDevelopLibraryREADME
个人简历
快速开发库
<table border="1" bgcolor="#cccccc" cellpadding="7"> <caption style ="text-align:center;font-size:16px;font-weight:bold;color:#000;">扫码下载</caption> <tr style ="background:#f2fbfe !important;"> <td > <img src="https://raw.githubusercontent.com/Sum-sdl/AndriodDevelopLibrary/master/sample/demoUi/download_demo.png" height="120" width="120" > </td> <td> <img src="https://raw.githubusercontent.com/Sum-sdl/AndriodDevelopLibrary/master/sample/demoUi/project.png" height="120" width="120" > </td> </tr> <tr> <td style ="text-align:center"><a href="https://raw.githubusercontent.com/Sum-sdl/AndriodDevelopLibrary/master/sample/other/sample-release.apk">测试Demo下载</a></td> <td style ="text-align:center"><a href="https://gitee.com/Sum-sdl/code_project" target="_blank">其他项目地址</a></td> </tr> </table>Dependency
根目录
build.gradle {
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
//Api依赖倒置框架
classpath 'com.github.Sum-sdl:api-gradle-plugin:1.0.0'
}
}
在需要使用的任意模块添加以下插件
build.gradle {
apply plugin: 'com.zhoupu.api'
}
RecycleView通用适配器
dependencies {
//AndroidX版本
implementation 'io.github.Sum-sdl:library-adapter:2.0.1'
}
基础结构库(Java)
dependencies {
//AndroidX版本
implementation 'io.github.Sum-sdl:library-base:2.0.1'
}
网络库(Retrofit)
dependencies {
implementation 'io.github.Sum-sdl:library-network:2.0.0'
//Retrofit2-> 2.9.0版本
}
基础UI库(Kotlin)
dependencies {
//基础UI库
implementation 'io.github.Sum-sdl:library-ui:2.0.1'
}
1.自定义相册
2.自定义相机
3.图片预览
项目功能介绍
结构模块
- LiveData框架的封装 --> 新的MVVM结构调用
- Fragment的管理显示类FragmentCacheManager 用来管理多个Fragment的切换操作(如App主页的底部按钮)
- RecyclerView的通用适配器框架RvAdapter
- LiveDataEventBus->测试代码基于LiveData搞定EventBus全部功能。支持Observer可见时触发和ObserverForever一直监听触发
UI组件模块
- 底部滑动出来的通用浮层的BaseBottomSheetFragment
- 底部滑动通用浮层案例DialogTimeChooseView 支持时间,日期选择,单选滚动功能
- 统一的空UI展示PubEmptyView,类似ViewStub的功能实现,调用setVisibility()的时候才会初始化View的内容
- 统一的标题展示PubTitleView
集成模块
- 集成Retrofit2网络框架(未添加RxJava
- 集成Glide图片框架
- 常用刷新框架SmartRefreshLayout
图片功能模块
<div align="center"> <img src="https://github.com/Sum-sdl/AndriodDevelopLibrary/raw/master/sample/demoUi/img.jpg" height="330" width="190" > <img src="https://github.com/Sum-sdl/AndriodDevelopLibrary/raw/master/sample/demoUi/bt_1.jpg" height="330" width="190" > <img src="https://github.com/Sum-sdl/AndriodDevelopLibrary/raw/master/sample/demoUi/bt_2.jpg" height="330" width="190" > <img src="https://github.com/Sum-sdl/AndriodDevelopLibrary/raw/master/sample/demoUi/bt_3.jpg" height="330" width="190" > </div> <div align="center"> <img src="https://github.com/Sum-sdl/AndriodDevelopLibrary/raw/master/sample/demoUi/img1.jpg" height="330" width="190" > <img src="https://github.com/Sum-sdl/AndriodDevelopLibrary/raw/master/sample/demoUi/img3.jpg" height="330" width="190" > <img src="https://github.com/Sum-sdl/AndriodDevelopLibrary/raw/master/sample/demoUi/img4.jpg" height="330" width="190" > <img src="https://github.com/Sum-sdl/AndriodDevelopLibrary/raw/master/sample/demoUi/img5.jpg" height="330" width="190" > </div>功能图片展示
<img src="https://github.com/Sum-sdl/AndriodDevelopLibrary/raw/master/sample/demoUi/architecture.png">JetPack框架结构
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
