全体注意!一大波鸿蒙三方库已经到来!
HarmonyOS技术社区 人气:0如果说面向全场景的分布式特性是奠定HarmonyOS发展的基石,丰富的第三方库则是HarmonyOS不断发展的保证。库是开发的根本,可以降低开发难度,丰富开发选择,提升开发效率。从页面到APP,所有的设计都离不开它。
HarmonyOS三方库涵盖了7大类,目前还在急速扩充中。以下为三方库的介绍及资源地址,赶紧收藏!
一、工具类
分类 | 名称 | 介绍 | 资源地址 |
---|---|---|---|
1.1 图片加载 | gilde | 最常用的图片加载工具 | https://gitee.com/openharmony-tpc/glide |
glide-transformations | 基于glide 的图片变化库 | https://gitee.com/openharmony-tpc/glide-transformations | |
fresco | facebook出品的一款图片加载工具 | https://gitee.com/openharmony-tpc/fresco | |
picasso | 常用的图片加载工具之一 | https://gitee.com/openharmony-tpc/picasso | |
ohos-gif-drawable | gif图片加载工具 | https://gitee.com/openharmony-tpc/ohos-gif-drawable | |
ohos-Universal-Image-Loader | 常用图片加载工具之一 | https://gitee.com/openharmony-tpc/ohos-Universal-Image-Loader | |
Keyframes | 基于Adobe 矢量图动画加载 | https://gitee.com/openharmony-tpc/Keyframes | |
ion | 图片加载工具 | https://gitee.com/openharmony-tpc/ion | |
1.2 数据封装传递 | EventBus | 最常用的消息传递工具 | https://gitee.com/openharmony-tpc/EventBus |
Rxohos | 基于RxJava | https://gitee.com/openharmony-tpc/Rxohos | |
RxBus | 基于Rxjava消息传递工具 | https://gitee.com/openharmony-tpc/RxBus | |
otto | 基于Guava的消息传递工具 | https://gitee.com/openharmony-tpc/otto | |
RxLifeCycle | 基于RxJava生命周期获取 | https://gitee.com/openharmony-tpc/RxLifeCycle | |
RxBinding | 基于控件的扩展 | https://gitee.com/openharmony-tpc/RxBinding | |
agera | 数据交互 | https://gitee.com/openharmony-tpc/agera | |
Anadea_RxBus | 基于Rxjava消息传递工具 | https://gitee.com/openharmony-tpc/Anadea_RxBus | |
LoadSir | 注册事件进行回调操作 | https://gitee.com/openharmony-tpc/LoadSir | |
1.3 日志 | Logger | log工具 | https://gitee.com/openharmony-tpc/logger |
xLog | 日志工具 | https://gitee.com/openharmony-tpc/xLog | |
1.4 权限相关 | xxpermissions | 权限申请 | https://gitee.com/openharmony-tpc/xxpermissions |
PermissionsDispatcher | 权限申请 | https://gitee.com/openharmony-tpc/PermissionsDispatcher | |
Dexter | 权限申请 | https://gitee.com/openharmony-tpc/Dexter | |
1.5 相机/相册 | BGAQRCode-ohos | 基于ZXing的二维码扫描工具 | https://gitee.com/openharmony-tpc/BGAQRCode-ohos |
Matisse | 相册访问 | https://gitee.com/openharmony-tpc/Matisse | |
ImagePicker | 相册访问 | https://gitee.com/openharmony-tpc/ImagePicker | |
CameraView | 相机使用组件 | https://gitee.com/openharmony-tpc/CameraView | |
1.6 其他 | Butterknife | 通过反射调用方法 | https://gitee.com/openharmony-tpc/butterknife |
assertj-ohos | 快速调用其他封装库 | https://gitee.com/openharmony-tpc/assertj-ohos | |
ohos-utilset | 工具集 | https://gitee.com/openharmony-tpc/ohos-utilset | |
xUtils3 | 工具集 包含网络,图片,控件等 | https://gitee.com/openharmony-tpc/xUtils3 | |
device-year-class | 获取手机年份 | https://gitee.com/openharmony-tpc/device-year-class | |
swipe | 对于手势封装应用 | https://gitee.com/openharmony-tpc/swipe | |
TinyPinyin | 文字转拼音工具 | https://gitee.com/openharmony-tpc/TinyPinyin |
二、网络类
名称 | 介绍 | 资源地址 |
---|---|---|
PersistentCookieJar | 基于okhttp3实现的cookie网络优化 | https://gitee.com/openharmony-tpc/PersistentCookieJar |
chuck | okhttp本地client | https://gitee.com/openharmony-tpc/chuck |
google-http-java-client | google http Client库 | https://gitee.com/openharmony-tpc/google-http-java-client |
ohos-async-http | 基于Apache的HttpClient库构建的Http Client | https://gitee.com/openharmony-tpc/ohos-async-http |
okhttp-OkGo | 基于okhttp 封装的库 | https://gitee.com/openharmony-tpc/okhttp-OkGo |
ohosAsync | 异步网络请求 | https://gitee.com/openharmony-tpc/ohosAsync |
Fast-ohos-Networking | 快速访问 | https://gitee.com/openharmony-tpc/Fast-ohos-Networking |
FileDownloader | 文件下载库 | https://gitee.com/openharmony-tpc/FileDownloader |
PRDownloader | 文件下载库 | https://gitee.com/openharmony-tpc/PRDownloader |
network-connection-class | 获取网络状态库 | https://gitee.com/openharmony-tpc/network-connection-class |
ThinDownloadManager | 文件下载库 | https://gitee.com/openharmony-tpc/ThinDownloadManager |
三、文件数据类
分类 | 名称 | 介绍 | 资源地址 |
---|---|---|---|
3.1 数据库 | greenDAO | 最常用的数据库组件 | https://gitee.com/openharmony-tpc/greenDAO |
Activeohos | 数据库sqlite封装 | https://gitee.com/openharmony-tpc/Activeohos | |
RushOrm | 数据库sqlite封装 | https://gitee.com/openharmony-tpc/RushOrm | |
LitePal | 数据库sqlite封装 | https://gitee.com/openharmony-tpc/LitePal | |
3.2 Preferences | rx-preferences | 基于Preferences封装存储工具 | https://gitee.com/openharmony-tpc/rx-preferences |
preferencebinder | 基于Preferences封装存储工具 | https://gitee.com/openharmony-tpc/preferencebinder |
四、音视频
分类 | 名称 | 介绍 | 资源地址 |
---|---|---|---|
4.1 视频 | jcodec java | 解码视频 | https://gitee.com/openharmony-tpc/jcodec |
4.2 音频 | soundtouch | 支持更改声音速度 | https://gitee.com/openharmony-tpc/soundtouch |
五、动画图形类
分类 | 名称 | 介绍 | 资源地址 |
---|---|---|---|
5.1 动画 | ohosViewAnimations | 一款动画的集合的库 | https://gitee.com/openharmony-tpc/ohosViewAnimations |
lottie-ohos | 让复杂动画轻松实现 | https://gitee.com/openharmony-tpc/lottie-ohos | |
confetti | 模仿雪花飘落的动画 | https://gitee.com/openharmony-tpc/confetti | |
RippleEffect | 水波纹点击动画 | https://gitee.com/openharmony-tpc/RippleEffect | |
MetaballLoading | 一个类似元球进度动画效果 | https://gitee.com/openharmony-tpc/MetaballLoading | |
ohos-Spinkit | 多种基础动画集合 | https://gitee.com/openharmony-tpc/ohos-Spinkit | |
LoadingView | 多种多样的loading动画集合 | https://gitee.com/openharmony-tpc/LoadingView | |
desertplaceholder | 沙漠中的带动画的场景 | https://gitee.com/openharmony-tpc/desertplaceholder | |
Sequent | 各种文字图片呈现动画 | https://gitee.com/openharmony-tpc/Sequent | |
ohos-Views | 各种动画的views | https://gitee.com/openharmony-tpc/ohos-Views | |
BezierMaker | 简单的贝赛尔曲线绘制方法 | https://gitee.com/openharmony-tpc/BezierMaker | |
WhorlView | 圆形转圈动画 | https://gitee.com/openharmony-tpc/WhorlView | |
5.2 图片处理 | SimpleCropView | 图片裁剪工具 | https://gitee.com/openharmony-tpc/SimpleCropView |
Luban | 图片压缩工具 | https://gitee.com/openharmony-tpc/Luban | |
TakePhoto | 拍照图片旋转剪裁 | https://gitee.com/openharmony-tpc/TakePhoto | |
Compressor | 图片压缩 | https://gitee.com/openharmony-tpc/Compressor | |
PloyFun | 生成三角玻璃图片 | https://gitee.com/openharmony-tpc/PloyFun | |
CompressHelper | 图片压缩 | https://gitee.com/openharmony-tpc/CompressHelper |
六、 UI- 自定义控件
分类 | 名称 | 介绍 | 资源地址 |
---|---|---|---|
6.1 Image | PhotoView | 图片缩放查看 | https://gitee.com/openharmony-tpc/PhotoView |
CircleImageView | 圆形图片 | https://gitee.com/openharmony-tpc/CircleImageView | |
RoundedImageView | 圆角图片 | https://gitee.com/openharmony-tpc/RoundedImageView | |
subsampling-scale-image-view | 超高清图查看缩放 | https://gitee.com/openharmony-tpc/subsampling-scale-image-view | |
ContinuousScrollableImageView | 带动画播放的Image | https://gitee.com/openharmony-tpc/ContinuousScrollableImageView | |
6.2 Text | drawee-text-view | 富文本组件 | https://gitee.com/openharmony-tpc/drawee-text-view |
ReadMoreTextView | 点击展开的Text控件 | https://gitee.com/openharmony-tpc/ReadMoreTextView | |
MaterialEditText | 基于MaterialDesign设计的自定义输入框 | https://gitee.com/openharmony-tpc/MaterialEditText | |
XEditText | 自定义特殊效果输入 | https://gitee.com/openharmony-tpc/XEditText | |
6.3 Button | FloatingActionButton | 悬浮button | https://gitee.com/openharmony-tpc/FloatingActionButton |
circular-progress-button | 自定义带进度的按钮 | https://gitee.com/openharmony-tpc/circular-progress-button | |
progressbutton | 带进度的自定义按钮 | https://gitee.com/openharmony-tpc/progressbutton | |
SwitchButton | 仿ios的开关按钮 | https://gitee.com/openharmony-tpc/SwitchButton | |
SlideSwitch | 多种样式的开关按钮 | https://gitee.com/openharmony-tpc/SlideSwitch | |
6.4 ListContainer | FloatingGroupExpandableListView | 自定义list组件,支持分类带标题 | https://gitee.com/openharmony-tpc/FloatingGroupExpandableListView |
XRecyclerView | 基于ListContainer下拉刷新 | https://gitee.com/openharmony-tpc/XRecyclerView | |
PullToZoomInListView | 顶部放大List | https://gitee.com/openharmony-tpc/PullToZoomInListView | |
WaveSideBar | 类似于通讯录带字母选择的list | https://gitee.com/openharmony-tpc/WaveSideBar | |
SwipeActionAdapter | list侧滑菜单 | https://gitee.com/openharmony-tpc/SwipeActionAdapter | |
6.5 PageSlider | ViewPagerIndicator | 星级最高的Slider组件 | https://gitee.com/openharmony-tpc/ViewPagerIndicator |
PageIndicatorView | 自定义适配器组件 | https://gitee.com/openharmony-tpc/PageIndicatorView | |
UltraViewPager | 多种样式的Slider自定义控件 | https://gitee.com/openharmony-tpc/UltraViewPager | |
SlidingDrawer | 自定义Slider组件 | https://gitee.com/openharmony-tpc/SlidingDrawer | |
AppIntro | 各种转场动画集合 | https://gitee.com/openharmony-tpc/AppIntro | |
ParallaxViewPager | 自定义Slider组件 | https://gitee.com/openharmony-tpc/ParallaxViewPager | |
MZBannerView | 仿魅族BannerView自定义组件 | https://gitee.com/openharmony-tpc/MZBannerView | |
FlycoPageIndicator | 多种样式的适配器组件 | https://gitee.com/openharmony-tpc/FlycoPageIndicator | |
SCViewPager | 不规则淡入淡出的Slider | https://gitee.com/openharmony-tpc/SCViewPager | |
imagecoverflow | 3D视角适配器 | https://gitee.com/openharmony-tpc/ImageCoverFlow | |
6.6 ProgressBar | MaterialProgressBar | 多种样式自定义progressbar | https://gitee.com/openharmony-tpc/MaterialProgressBar |
discreteSeekBar | 冒泡式显示自定义seekbar | https://gitee.com/openharmony-tpc/discreteSeekBar | |
materialish-progress | 自定义样式的progressbar | https://gitee.com/openharmony-tpc/materialish-progress | |
ohos-HoloCircularProgressBar | 自定义progressBar | https://gitee.com/openharmony-tpc/ohos-HoloCircularProgressBar | |
circular-music-progressbar | 类似于音乐播放器的圆形progressbar | https://gitee.com/openharmony-tpc/circular-music-progressbar | |
SectorProgressView | 自定义圆形progressBar | https://gitee.com/openharmony-tpc/SectorProgressView | |
LikeSinaSportProgress | 类似于新浪的两边比拼进度条 | https://gitee.com/openharmony-tpc/LikeSinaSportProgress | |
6.7 Dialog/弹出框 | sweet-alert-dialog | 自定义对话框 | https://gitee.com/openharmony-tpc/sweet-alert-dialog |
LovelyDialog | 自定义样式的Dialog | https://gitee.com/openharmony-tpc/LovelyDialog | |
CookieBar | 顶部底部弹出的自定义对话框 | https://gitee.com/openharmony-tpc/CookieBar | |
Alerter | 顶部提示组件 | https://gitee.com/openharmony-tpc/Alerter | |
StatusView | 顶部弹出的状态视图 | https://gitee.com/openharmony-tpc/StatusView | |
6.8 Layout | vlayout | 可以嵌套列表布局 | https://gitee.com/openharmony-tpc/vlayout |
flexbox-layout | 按照百分比控制的布局 | https://gitee.com/openharmony-tpc/flexbox-layout | |
ohosAutoLayout | 根据特定效果图尺寸,按比例自适应布局 | https://gitee.com/openharmony-tpc/ohosAutoLayout | |
yoga | facebook基于flexbox的布局引擎 | https://gitee.com/openharmony-tpc/yoga | |
6.9 Tab/菜单切换 | FlycoTabLayout | 自定义TabLayout组件 | https://gitee.com/openharmony-tpc/FlycoTabLayout |
NavigationTabBar | 各种样式TabBar合集 | https://gitee.com/openharmony-tpc/NavigationTabBar | |
BottomBar | 自定义底部菜单栏 | https://gitee.com/openharmony-tpc/BottomBar | |
BottomNavigation | 多种样式自定义底部菜单栏 | https://gitee.com/openharmony-tpc/BottomNavigation | |
ahbottomnavigation | 多种样式自定义底部菜单栏 | https://gitee.com/openharmony-tpc/ahbottomnavigation | |
HorizontalPicker | 横向菜单选择器 | https://gitee.com/openharmony-tpc/HorizontalPicker | |
StatefulLayout | 可以左右切换布局有点类似PageSlider | https://gitee.com/openharmony-tpc/StatefulLayout | |
6.10 Toast | Toasty | 简单好用的Toast调用工具 | https://github.com/GrenderG/Toasty |
FancyToast-ohos | Toast调用封装工具 | https://gitee.com/openharmony-tpc/FancyToast-ohos | |
6.11 Time/Date | ohos-times-square | 简单的日历组件 | https://gitee.com/openharmony-tpc/ohos-times-square |
CountdownView | 多种效果的时间计时器 | https://gitee.com/openharmony-tpc/CountdownView | |
6.12 其他 | BGARefreshLayout-ohos | 基于多个场景的下拉刷新 | https://gitee.com/openharmony-tpc/BGARefreshLayout-ohos |
ohos-Bootstrap | 多种自定义控件合集 | https://gitee.com/openharmony-tpc/ohos-Bootstrap | |
ohosSlidingUpPanel | 底部上滑布局 | https://gitee.com/openharmony-tpc/ohosSlidingUpPanel | |
Fragmentation | 侧边菜单 | https://gitee.com/openharmony-tpc/Fragmentation | |
triangle-view | 三角图 | https://gitee.com/openharmony-tpc/triangle-view | |
MaterialDesignLibrary | 基于MaterialDesign的各种自定义控件合集 | https://gitee.com/openharmony-tpc/MaterialDesignLibrary | |
XPopup | 包含dialog,图片加载等各式自定义控件 | https://gitee.com/openharmony-tpc/Xpopup | |
cardslib | 卡片式布局库 | https://gitee.com/openharmony-tpc/cardslib | |
Swipecards | 滑动卡片组件 | https://gitee.com/openharmony-tpc/Swipecards | |
SlideUp-ohos | 从下方滑动出来的布局控件 | https://gitee.com/openharmony-tpc/SlideUp-ohos | |
EazeGraph | 柱状图圆形图山峰图 | https://gitee.com/openharmony-tpc/EazeGraph | |
WheelView | 轮盘选择 | https://gitee.com/openharmony-tpc/WheelView | |
RulerView | 卷尺控件 | https://gitee.com/openharmony-tpc/RulerView | |
MultiCardMenu | 底部弹出的自定义菜单集合 | https://gitee.com/openharmony-tpc/MultiCardMenu | |
DividerDrawable | 分割线绘制 | https://gitee.com/openharmony-tpc/DividerDrawable | |
ProtractorView | 量角器控件 | https://gitee.com/openharmony-tpc/ProtractorView | |
ohos-ExpandIcon | 箭头控件 | https://gitee.com/openharmony-tpc/ohos-ExpandIcon | |
GestureLock | 可自定义配置的手势动画解锁 | https://gitee.com/openharmony-tpc/GestureLock | |
williamchart | 柱状图圆形图进度图山峰图 | https://gitee.com/openharmony-tpc/williamchart | |
labelview | 自定义角标图 | https://gitee.com/openharmony-tpc/labelview | |
PatternLockView | 简单的手势解锁 | https://gitee.com/openharmony-tpc/PatternLockView | |
BadgeView | 图标的标签图 | https://gitee.com/openharmony-tpc/BadgeView | |
MaterialBadgeTextView | 图标的标签图 | https://gitee.com/openharmony-tpc/MaterialBadgeTextView | |
SlantedTextView | 自定义角标图 | https://gitee.com/openharmony-tpc/SlantedTextView | |
TriangleLabelView | 三角形角标图 | https://gitee.com/openharmony-tpc/TriangleLabelView | |
GoodView | 带特效点赞按钮 | https://gitee.com/openharmony-tpc/GoodView | |
StateViews | 自定义状态提示控件 | https://gitee.com/openharmony-tpc/StateViews | |
WaveView | 自定义水平面样式控件 | https://gitee.com/openharmony-tpc/WaveView | |
CircleRefreshLayout | 下拉刷新组件 | https://gitee.com/openharmony-tpc/CircleRefreshLayout |
七、框架类
名称 | 介绍 | 资源地址 |
---|---|---|
TheMVP | mvp框架 | https://gitee.com/openharmony-tpc/TheMVP |
ohos-ZBLibrary | MVP框架,同时附有OKhttp,glide,zxing等常用工具 | https://gitee.com/openharmony-tpc/ohos-ZBLibrary |
更多HarmonyOS三方库在持续增加中,敬请期待!
想了解更多内容,请访问51CTO和华为合作共建的鸿蒙社区:https://harmonyos.51cto.com
加载全部内容