RxTool
所谓:工欲善其事必先利其器!
`RxTool` 是 `Android` 开发过程经常需要用到各式各样的工具类集合,虽然大部分只需谷歌/百度一下就能找到。
但是有时候急需使用却苦苦搜寻不到,于是整理了自己平常用到的工具类,以便以后的使用。
如何使用它
Step 1.先在 build.gradle(Project:XXXX) 的 repositories 添加:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. 然后在 build.gradle(Module:app) 的 dependencies 添加:
dependencies {
//基础工具库
implementation "com.github.tamsiree.RxTool:RxKit:2.3.9"
//UI库
implementation "com.github.tamsiree.RxTool:RxUI:2.3.9"
//相机库
implementation "com.github.tamsiree.RxTool:RxCamera:2.3.9"
//功能库(Zxing扫描与生成二维码条形码 支付宝 微信)
implementation "com.github.tamsiree.RxTool:RxFeature:2.3.9"
//ArcGis For Android工具库(API:100.1以上版本)
implementation "com.github.tamsiree.RxTool:RxArcGisKit:2.3.9"
}
Step 3.在Application中初始化 (注:v2.0.0以后版本是分多模块的版本)
RxTool.init(this);
文档
可以参考文档来调用相对应的API,欢迎指教
近期更新日志(因为自己用的关系,更新的频率可能有点快)
VERSION | Description |
---|---|
2.2.7 | 新增适配dimens文件 适配平板等各种屏幕大小的设备 |
2.2.6 | 更新RxMapScaleView及资源文件 |
2.2.5 | 更新RxCameraView 修复部分设备不支持16:9分辨率崩溃问题 |
2.2.4 | 更新数据处理工具 |
2.2.3 | 调整相机分辨率大小 |
2.2.2 | 整理配置文件 |
2.2.1 | 增加若干Shape资源 |
2.2.0 | 增加ArcGis坐标系换算方法(投影坐标系、GPS坐标系、设备屏幕坐标系) |
2.1.9 | 更新RxAutoImageView的屏幕适配大小 |
2.1.8 | 更新RxCameraView的参数与算法 |
2.1.7 | 新增ArcGis关于地图精准定位与行程轨迹的实现方法 |
2.1.6 | 更新zip4j压缩算法 |
2.1.5 | RxLocationTool 新增 GPS坐标转百度坐标 方法 |
2.1.4 | 新增ArcGis若干工具 |
2.1.3 | 更新Gps移动定位算法 |
2.1.2 | 优化ArcGis工具类 |
2.1.1 | 更新GPS定位工具类 更新配置文件 |
2.1.0 | 更新绘制文字与图片工具 |
2.0.9 | 调整安卓各版本下的相机适配 |
2.0.8 | 优化相机控件模块 |
2.0.7 | 新增相机控件模块 |
2.0.6 | 更新ArcGis工具 更新颜色资源 |
2.0.5 | 新增ArcGis地图比例尺控件 相机工具的优化 |
2.0.4 | 降低模块之间的耦合性 ArcGisMap工具的优化 |
2.0.3 | 更新扫描二维码Demo 更新日期选择Dialog |
2.0.2 | 更新支付宝SDK,新增支付宝支付DEMO 更新相机工具 |
2.0.1 | 新增(高德/百度)地图导航工具 新增ArcGis工具类 |
2.0.0 | 重构成多模块 |
Demo介绍
RxPhotoTool操作UCrop裁剪图片
展示头像 | 选择头像 | 裁剪头像 |
---|---|---|
二维码与条形码的扫描与生成
扫描二维码 | 生成二维码 | 扫描条形码 |
---|---|---|
常用的Dialog展示
确认弹窗 | 确认取消弹窗 | 输入框弹窗 |
---|---|---|
选择日期弹窗 | 形状加载弹窗 | Acfun加载弹窗 |
其他功能展示
WebView的封装(可播放视频) | RxTextTool操作Demo | RxToast的展示使用 |
---|---|---|
进度条的艺术 | 网速控件 | 联系人侧边栏快速导航 |
图片的缩放艺术 | 蛛网控件 | 仿斗鱼验证码控件 |
DEMO 与 打赏
Demo |
---|
扫描二维码 or 点击二维码 下载 |
微信打赏 | 支付宝打赏 |
---|---|
如果你帮助到了你 可以点右上角"Star"支持一下 谢谢!^_^ 你也还可以扫描下面的二维码打赏鼓励一下~ 请作者喝一杯咖啡。 |
如果在捐赠留言中备注名称 将会被记录到列表中~ 如果你也是github开源作者 捐赠时可以留下github项目地址或者个人主页地址 链接将会被添加到列表中起到互相推广的作用 |
捐赠列表 |
闲聊群 |
License
Copyright (c) <year> <copyright holders>
"Anti 996" License Version 1.0 (Draft)
Permission is hereby granted to any individual or legal entity
obtaining a copy of this licensed work (including the source code,
documentation and/or related items, hereinafter collectively referred
to as the "licensed work"), free of charge, to deal with the licensed
work for any purpose, including without limitation, the rights to use,
reproduce, modify, prepare derivative works of, distribute, publish
and sublicense the licensed work, subject to the following conditions:
1. The individual or the legal entity must conspicuously display,
without modification, this License and the notice on each redistributed
or derivative copy of the Licensed Work.
2. The individual or the legal entity must strictly comply with all
applicable laws, regulations, rules and standards of the jurisdiction
relating to labor and employment where the individual is physically
located or where the individual was born or naturalized; or where the
legal entity is registered or is operating (whichever is stricter). In
case that the jurisdiction has no such laws, regulations, rules and
standards or its laws, regulations, rules and standards are
unenforceable, the individual or the legal entity are required to
comply with Core International Labor Standards.
3. The individual or the legal entity shall not induce, suggest or force
its employee(s), whether full-time or part-time, or its independent
contractor(s), in any methods, to agree in oral or written form, to
directly or indirectly restrict, weaken or relinquish his or her
rights or remedies under such laws, regulations, rules and standards
relating to labor and employment as mentioned above, no matter whether
such written or oral agreements are enforceable under the laws of the
said jurisdiction, nor shall such individual or the legal entity
limit, in any methods, the rights of its employee(s) or independent
contractor(s) from reporting or complaining to the copyright holder or
relevant authorities monitoring the compliance of the license about
its violation(s) of the said license.
THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN ANY WAY CONNECTION WITH THE
LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK.