HarmonyOS技术社区 · 2021年04月22日

全体注意!一大波鸿蒙三方库已经到来!

如果说面向全场景的分布式特性是奠定HarmonyOS发展的基石,丰富的第三方库则是HarmonyOS不断发展的保证。库是开发的根本,可以降低开发难度,丰富开发选择,提升开发效率。从页面到APP,所有的设计都离不开它。

HarmonyOS三方库涵盖了7大类,目前还在急速扩充中。以下为三方库的介绍及资源地址,赶紧收藏!

一、工具类


分类名称介绍资源地址
1.1 图片加载gilde最常用的图片加载工具https://gitee.com/openharmony-tpc/glide
glide-transformations基于glide 的图片变化库https://gitee.com/openharmony-tpc/glide-transformations
frescofacebook出品的一款图片加载工具https://gitee.com/openharmony-tpc/fresco
picasso常用的图片加载工具之一https://gitee.com/openharmony-tpc/picasso
ohos-gif-drawablegif图片加载工具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基于RxJavahttps://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 日志Loggerlog工具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
chuckokhttp本地clienthttps://gitee.com/openharmony-tpc/chuck
google-http-java-clientgoogle http Client库https://gitee.com/openharmony-tpc/google-http-java-client
ohos-async-http基于Apache的HttpClient库构建的Http Clienthttps://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 Preferencesrx-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各种动画的viewshttps://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 ImagePhotoView图片缩放查看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带动画播放的Imagehttps://gitee.com/openharmony-tpc/ContinuousScrollableImageView
6.2 Textdrawee-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 ButtonFloatingActionButton悬浮buttonhttps://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 ListContainerFloatingGroupExpandableListView自定义list组件,支持分类带标题https://gitee.com/openharmony-tpc/FloatingGroupExpandableListView
XRecyclerView基于ListContainer下拉刷新https://gitee.com/openharmony-tpc/XRecyclerView
PullToZoomInListView顶部放大Listhttps://gitee.com/openharmony-tpc/PullToZoomInListView
WaveSideBar类似于通讯录带字母选择的listhttps://gitee.com/openharmony-tpc/WaveSideBar
SwipeActionAdapterlist侧滑菜单https://gitee.com/openharmony-tpc/SwipeActionAdapter
6.5 PageSliderViewPagerIndicator星级最高的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不规则淡入淡出的Sliderhttps://gitee.com/openharmony-tpc/SCViewPager
imagecoverflow3D视角适配器https://gitee.com/openharmony-tpc/ImageCoverFlow
6.6 ProgressBarMaterialProgressBar多种样式自定义progressbarhttps://gitee.com/openharmony-tpc/MaterialProgressBar
discreteSeekBar冒泡式显示自定义seekbarhttps://gitee.com/openharmony-tpc/discreteSeekBar
materialish-progress自定义样式的progressbarhttps://gitee.com/openharmony-tpc/materialish-progress
ohos-HoloCircularProgressBar自定义progressBarhttps://gitee.com/openharmony-tpc/ohos-HoloCircularProgressBar
circular-music-progressbar类似于音乐播放器的圆形progressbarhttps://gitee.com/openharmony-tpc/circular-music-progressbar
SectorProgressView自定义圆形progressBarhttps://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自定义样式的Dialoghttps://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 Layoutvlayout可以嵌套列表布局https://gitee.com/openharmony-tpc/vlayout
flexbox-layout按照百分比控制的布局https://gitee.com/openharmony-tpc/flexbox-layout
ohosAutoLayout根据特定效果图尺寸,按比例自适应布局https://gitee.com/openharmony-tpc/ohosAutoLayout
yogafacebook基于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可以左右切换布局有点类似PageSliderhttps://gitee.com/openharmony-tpc/StatefulLayout
6.10 ToastToasty简单好用的Toast调用工具https://github.com/GrenderG/Toasty
FancyToast-ohosToast调用封装工具https://gitee.com/openharmony-tpc/FancyToast-ohos
6.11 Time/Dateohos-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

七、框架类

名称介绍资源地址
TheMVPmvp框架https://gitee.com/openharmony-tpc/TheMVP
ohos-ZBLibraryMVP框架,同时附有OKhttp,glide,zxing等常用工具https://gitee.com/openharmony-tpc/ohos-ZBLibrary

更多HarmonyOS三方库在持续增加中,敬请期待!

<span class="colour" style="color: rgb(0, 0, 0);">想了解更多内容,请访问51CTO和华为合作共建的鸿蒙社区:</span>https://harmonyos.51cto.com

21_9.jpg

推荐阅读
关注数
2947
内容数
446
华为鸿蒙相关技术,活动及资讯,欢迎关注及加入创作
目录
极术微信服务号
关注极术微信号
实时接收点赞提醒和评论通知
安谋科技学堂公众号
关注安谋科技学堂
实时获取安谋科技及 Arm 教学资源
安谋科技招聘公众号
关注安谋科技招聘
实时获取安谋科技中国职位信息