gitmyhub

RxTool

Kotlin ★ 12k updated 2y ago

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

RxTool is a modular Kotlin library for Android developers that bundles common utilities, UI components, camera handling, QR code scanning, payment integrations, and more, so you don't rebuild them each project.

KotlinAndroidJitPackZxingZip4jArcGISsetup: easycomplexity 2/5

RxTool is a collection of ready-to-use utility modules for Android app developers, written in Kotlin. Rather than searching the internet every time a common task comes up, the author gathered frequently needed tools into one library so they are always at hand. The project has grown through many versions and now covers a wide range of everyday Android needs.

The library is split into separate modules that developers can pull in individually. The core module (RxKit) handles general utilities, while RxUI adds pre-built interface components like progress bars, custom dialogs, a contact sidebar navigator, and a WebView wrapper that can play videos. A camera module (RxCamera) handles photo capture and cropping using UCrop, and a features module (RxFeature) handles QR code and barcode scanning and generation via the Zxing library. There is also a payment module (RxPay) for Alipay and WeChat Pay integrations, and a mapping module (RxArcGisKit) for ArcGis-based geographic work.

Beyond those main modules, the toolkit includes tools for GPS and location tracking, device vibration, image zoom, adding geographic coordinates to photos in their metadata (Exif), file compression with password support via Zip4j, a color picker, a sliding puzzle verification code widget similar to those seen in Chinese apps, and a custom Toast notification wrapper. The demos section of the README shows screenshots for most of these features, giving a clear sense of what each piece looks like in a real app.

Setup follows the standard Android dependency pattern: add the JitPack repository to the project build file, then declare whichever RxTool modules are needed in the app-level build file, and call RxTool.init() once in the Application class. The library requires Android API level 21 or higher. The codebase was converted from Java to Kotlin starting at version 2.6.0, and it moved to AndroidX in version 2.4.0. The README is written in Chinese and the project is aimed primarily at Chinese Android developers, though the code itself is usable in any Android project.

Where it fits