79 Star 308 Fork 89

Tamsiree / RxTool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

RxTool

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

该授权作品是"按原样"提供,不做任何明示或暗示的保证,包括但不限于对适销性、特定用途适用性和非侵
权性的保证。在任何情况下,无论是在合同诉讼、侵权诉讼或其他诉讼中,版权持有人均不承担因本软件或
本软件的使用或其他交易而产生、引起或与之相关的任何索赔、损害或其他责任。
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "{}" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright {yyyy} {name of copyright owner} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

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

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Android
1
https://gitee.com/tamsiree/RxTool.git
git@gitee.com:tamsiree/RxTool.git
tamsiree
RxTool
RxTool
master

搜索帮助

14c37bed 8189591 565d56ea 8189591