Tamsiree / RxTool

Android开发人员不得不收集的工具类集合 | 支付宝支付 | 微信支付(统一下单) | 微信分享 | Zip4j压缩(支持分卷压缩与加密) | 一键集成UCrop选择圆形头像 | 一键集成二维码和条形码的扫描与生成 | 常用Dialog | WebView的封装可播放视频 | 仿斗鱼滑动验证码 | Toast封装 | 震动 | GPS | Location定位 | 图片缩放 | Exif 图片添加地理位置信息(经纬度) | 蛛网等级 | 颜色选择器 | ArcGis | VTPK | 编译运行一下说不定会找到惊喜

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tamsiree.com Stars RxTool

996.icu LICENSE API Gradle-5.6.4

image

所谓:工欲善其事必先利其器!

RxToolAndroid 开发过程经常需要用到各式各样的工具类集合,虽然大部分只需谷歌/百度一下就能找到。

但是有时候急需使用却苦苦搜寻不到,于是整理了自己平常用到的工具类,以便以后的使用。


我的运行环境

Android Studio 4.2.1

Build #AI-202.7660.26.42.7351085, built on May 11, 2021

Runtime version: 11.0.8+10-b944.6842174 amd64

VM: OpenJDK 64-Bit Server VM by N/A

Windows 10 10.0

GC: G1 Young Generation, G1 Old Generation

Memory: 1280M

Cores: 20

Registry: external.system.auto.import.disabled=true

Non-Bundled Plugins: com.intellij.marketplace, com.thoughtworks.gauge, dev.polek.adbwifi, net.vektah.codeglance2, org.jetbrains.kotlin, org.intellij.plugins.markdown

targetSdkVersion 29

[gradle-wrapper.properties文件内] distributionUrl 6.7.1

[build.gradle文件内] gradle 4.2.1


如何使用它

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.6.3'
  //UI库
  implementation 'com.github.tamsiree.RxTool:RxUI:2.6.3'
  //相机库
  implementation 'com.github.tamsiree.RxTool:RxCamera:2.6.3'
  //功能库(Zxing扫描与生成二维码条形码)
  implementation 'com.github.tamsiree.RxTool:RxFeature:2.6.3'
  //ArcGis For Android工具库(API:100.1以上版本)
  implementation 'com.github.tamsiree.RxTool:RxArcGisKit:2.6.3'
  //支付模块(支付宝 微信)[暂为待优化模块,谨慎]
  implementation 'com.github.tamsiree.RxTool:RxPay:2.6.3'
}

Step 3.在Application中初始化

(注:2.0.0 以后版本是分多模块的版本)

(注:2.4.0 版本全面升级到 AndroidX)

(注:2.4.2 版本更改了库的包名)

RxTool.init(this);

API使用文档

可以参考文档来调用相对应的API,欢迎指教

更新日志

因为自己用的关系,更新的频率可能有点快

VERSION Description
2.6.3 修复自定义View的引用异常
2.6.2 更新 RxUI、RxKit、RxPay 模块
2.6.1 更新 RxUI、RxKit 模块,新增 测试数据生成工具
2.6.0 整体转换为kotlin
2.5.9 更新 RxUI 模块,新增 TBlurVIew,更新了 RxActivityTool、RxDialogChooseImage
2.5.8 更新 RxUI 模块,更新了 RxDialogChooseImage
2.5.7 模块转换为kotlin
2.5.6 更新项目配置
2.5.5 更新 RxUI 模块,更新了 RxActivityTool 工具类
2.5.4 更新 RxUI 模块,更新了 RxTitle、RxDialogDate
2.5.3 更新 RxUI 模块,新增TStepperIndicator步骤指示器,删除 CardView 依赖
2.5.2 更新 RxUI 模块,新增TIndicator指示器
2.5.1 更新 RxUI 模块,新增若干自定义View
2.5.0 优化所有自定义View,增加可预览功能
2.4.9 更新项目配置文件,模块添加kotlin支持
2.4.8 更新 RxKit 模块,更新了 RxCrashTool 工具类
2.4.7 更新 RxUI 模块,更新了 Fragment 工具类
2.4.6 更新 RxKit 模块,更新了 RxCrashTool 工具类,自定义崩溃模块
2.4.5 更新 RxUI 模块,新增 TabLayout、TUnReadView 自定义View
2.4.4 更新 RxUI 模块,RxDialogWheelYearMonthDay 更名为 RxDialogDate
2.4.3 优化 RxTitle 控件
2.4.2 更改库的包名,完善若干已知BUG
2.4.1 完善 RxArcGisKit 模块
2.4.0 全面升级到 Android X:
修复 RxToast 在 Android 9 上,连点只弹出一次的问题
修复 二维码扫描框的焦点偏离 问题
添加 生成二维码LOGO 功能
添加 RxQRCode 的空白边界设置方法
更新若干工具类
2.3.9 完善 RxFeature 模块
2.3.8 优化 RxFeature 模块
2.3.7 更新 RxFeature 模块
2.3.6 更新 RxFeature 模块,优化 RxUI 模块
2.3.5 优化 RxDataTool 模块
2.3.4 完善 RxKit 模块
2.3.3 更新 RxDataTool 模块
2.3.2 优化 RxKit 模块
2.3.1 更新 RxUI 模块的 WaveSideBarView
2.3.0 优化 RxCamera 模块
2.2.9 更新 RxUI 模块
2.2.8 修复配置文件
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加载弹窗
选择日期弹窗 形状加载弹窗 Acfun加载弹窗

其他功能展示

WebView的封装(可播放视频) RxTextTool操作Demo RxToast的展示使用
WebView的封装(可播放视频) RxTextTool操作Demo RxToast的展示使用
进度条的艺术 网速控件 联系人侧边栏快速导航
进度条的艺术 网速控件 联系人侧边栏快速导航
图片的缩放艺术 蛛网控件 仿斗鱼验证码控件
图片的缩放艺术 蛛网控件 仿斗鱼验证码控件

DEMO 与 打赏

Demo 微信赞助 支付宝赞助
快下载Demo运行试试吧
只展示了部分UI功能
功能性功能去源码里探索吧
如果你帮助到了你
可以点右上角"Star"支持一下
谢谢!^_^
你也还可以扫描下面的二维码打赏鼓励一下~
请作者喝一杯咖啡。
如果在捐赠留言中备注名称
将会被记录到列表中~
如果你也是github开源作者
捐赠时可以留下github项目地址或者个人主页地址
链接将会被添加到列表中起到互相推广的作用
RxTool 微信 支付宝
扫描二维码
或者
点击下载
捐赠名单
备选捐赠名单
闲聊群

 技术的深度探索与论证
点击入群

欢迎大家共同参与维护这个仓库,有什么好的想法或者代码优化可以提交 pull request


License

反 996 许可证

Copyright (c) <2016><Tamsiree>

"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.

译文

版权所有(c)<2016><Tamsiree>

反996许可证版本1.0

在符合下列条件的情况下,特此免费向任何得到本授权作品的副本(包括源代码、文件和/或相关内容,以
下统称为“授权作品”)的个人和法人实体授权:被授权个人或法人实体有权以任何目的处置授权作品,包括
但不限于使用、复制,修改,衍生利用、散布,发布和再许可:

1. 个人或法人实体必须在许可作品的每个再散布或衍生副本上包含以上版权声明和本许可证,不得自行修
改。

2. 个人或法人实体必须严格遵守与个人实际所在地或个人出生地或归化地、或法人实体注册地或经营地(
以较严格者为准)的司法管辖区所有适用的与劳动和就业相关法律、法规、规则和标准。如果该司法管辖区
没有此类法律、法规、规章和标准或其法律、法规、规章和标准不可执行,则个人或法人实体必须遵守国际
劳工标准的核心公约。

3. 个人或法人不得以任何方式诱导、暗示或强迫其全职或兼职员工或其独立承包人以口头或书面形式同意
直接或间接限制、削弱或放弃其所拥有的,受相关与劳动和就业有关的法律、法规、规则和标准保护的权利
或补救措施,无论该等书面或口头协议是否被该司法管辖区的法律所承认,该等个人或法人实体也不得以任
何方法限制其雇员或独立承包人向版权持有人或监督许可证合规情况的有关当局报告或投诉上述违反许可证
的行为的权利。

该授权作品是"按原样"提供,不做任何明示或暗示的保证,包括但不限于对适销性、特定用途适用性和非侵
权性的保证。在任何情况下,无论是在合同诉讼、侵权诉讼或其他诉讼中,版权持有人均不承担因本软件或
本软件的使用或其他交易而产生、引起或与之相关的任何索赔、损害或其他责任。

About

Android开发人员不得不收集的工具类集合 | 支付宝支付 | 微信支付(统一下单) | 微信分享 | Zip4j压缩(支持分卷压缩与加密) | 一键集成UCrop选择圆形头像 | 一键集成二维码和条形码的扫描与生成 | 常用Dialog | WebView的封装可播放视频 | 仿斗鱼滑动验证码 | Toast封装 | 震动 | GPS | Location定位 | 图片缩放 | Exif 图片添加地理位置信息(经纬度) | 蛛网等级 | 颜色选择器 | ArcGis | VTPK | 编译运行一下说不定会找到惊喜

License:Apache License 2.0


Languages

Language:Kotlin 75.8%Language:Java 24.2%