推荐理由:MaterialDesign工具库,二维码生成、蛛网评分控件、权限申请、自定义Toast、支持高斯模糊、图片选择等常用工具 KilleTomRxMaterialDesignUtil,依赖方式, 这个网站会告诉你有多少个版本以及你选择哪个版本进行依赖,多种依赖方式供你选择,运行效果图,Tables,Are,RaiseButton,RxToast,RxPermissions,RxAnneSeekBar,RxAnneSeekBa,RxHerculesQRCodeImageView,RxEthanSpiderWeb RxSpiderWebLayout,RxPhotoTools,RxCatherineBlur,RxEasyArcLoading,自定义RaiseButton,RxRaisedDropButton 、RxRai
适用人群:工具
推荐指数:26
项目名称:KilleTomRxMaterialDesignUtil
996station正文分割线=================================
KilleTomRxMaterialDesignUtil
依赖方式:JitPack | Publish JVM and Android libraries 这个网站会告诉你有多少个版本以及你选择哪个版本进行依赖,多种依赖方式供你选择
运行效果图
Tables | Are |
---|---|
RaiseButton | RxToast |
RxPermissions | RxAnneSeekBar |
RxAnneSeekBa | |
RxHerculesQRCodeImageView | RxEthanSpiderWeb RxSpiderWebLayout |
RxPhotoTools | RxCatherineBlur |
| |
RxEasyArcLoading | |
自定义RaiseButton
RxRaisedDropButton 、RxRaisedDropImageButton使用方式如下:
<style name="RxRaisedDropButtonPrimaryStyle" parent="Base.Widget.AppCompat.Button.Colored"> <item name="android:colorControlHighlight">#DA6954</item> <item name="android:colorControlNormal">@color/colorAccent</item> <item name="android:colorControlActivated">#DA8736</item> <item name="android:colorButtonNormal">@color/colorAccent</item> </style> <cn.ypz.com.killetomrxmateria.rxwidget.raisebutton.RxRaisedDropButton android:id="@+id/showtoast" android:layout_width="wrap_content" android:layout_height="wrap_content" android:theme="@style/RxRaisedDropPrimaryStyle" android:text="DIY has Ripper" android:layout_margin="10dp" android:layout_gravity="center_horizontal"/> <cn.ypz.com.killetomrxmateria.rxwidget.raisebutton.RxRaisedDropImageButton android:layout_width="60dp" android:layout_height="55dp" android:layout_gravity="center_horizontal" android:scaleType="centerInside" android:src="@drawable/ic_black_24dp" android:theme="@style/RxRaisedDropPrimaryStyle" android:layout_margin="10dp"/> `>
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
| |
|
自定义Toast并支持链式调用
默认有5种模式如下
| |
| |
| |
| |
| |
| |
|
调用分为两种模式:
直接调用返回一个Toast对象
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
配置者模式调用config模式调用:
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
调用示列如下:
| |
| |
| |
| |
| |
| |
| |
|
权限模式简化申请:
| |
| |
|
RxPermissionBaseActivity()重写方法如下
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
RxAnneSeekBar部分示例
更多示例请去查阅代码源码也有注释讲解
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
RxEthanSpiderWeb RxSpiderWebLayout部分示例
`>
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
RxHerculesQRCodeImageView 二维码部分示例
<declare-styleable name="RxHerculesQRCodeImageView"> <attr name="qrMode" format="integer"> <enum name="qrNormoal" value="0" /> <enum name="qrLogoCenter" value="1" /> <enum name="qrLogoBg" value="2"/> <enum name="qrLogoShape" value="3"/> </attr> <attr name="qrColor" format="color" /> <attr name="qrMessage" format="string" /> <attr name="qrLogo" format="reference" /> </declare-styleable> <cn.ypz.com.killetomrxmateria.rxwidget.qrcode.RxHerculesQRCodeImageView android:id="@+id/qr6" android:layout_width="150dp" android:layout_height="150dp" android:layout_marginTop="10dp" app:layout_constraintStart_toStartOf="@id/l1" app:layout_constraintTop_toBottomOf="@+id/qr5" android:background="@drawable/qrlogoshape" app:qrMessage="https://blog.youkuaiyun.com/qq_29856589/article/details/80311907" app:qrMode="qrLogoShape" />`>
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
RxPhotoTools图片选择示例
使用它可以简化图片申请代码处理回调结果即可
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
BaseActivity
支持两种沉侵式设置 使用方法继承它然后调用transgressionStatusBarWindow()或者transgressionAllWindow()即可
RxCatherineBlur
高斯模糊使用了缩放预处理加快高斯模糊的生成 支持链式调用如下:
| |
| |
| |
| |
| |
| |
|
亦可支持新建对象设置属性调用
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
开源地址
https://github.com/KilleTom/KilleTomRxMaterialDesignUtil
开源是一种精神,致敬屏幕背后的你!
=================================
原文链接:MaterialDesign工具库,二维码生成、蛛网评分控件、权限申请、自定义Toas KilleTomRxMaterialDesignUtil - 996station | 996技术站
更多精彩内容,就在996技术站-996station,极客带你看世界!
转载请注明出处!