工具类
允枫
这个作者很懒,什么都没留下…
展开
-
二维码 解码工具类
用于 二维码的解码 该方法是用于二维码的解密 传入一个Bitmap 对象public class QrDecodeUtils { Context context; public static String deCodeQR(Bitmap croppedBitmap) { // Bitmap croppedBitmap = Bitmap.cre...原创 2019-10-21 10:45:32 · 563 阅读 · 0 评论 -
最大金额显示控件 MaxAmountMaster
1. 类似于掌上生活的信用最大额度话不多说 上代码Graldeimplementation'com.a1002326270:amountlibs:1.0'Maven Dependence:<dependency> <groupId>com.a1002326270</groupId> <artifactId>amou...转载 2019-10-18 16:30:19 · 329 阅读 · 0 评论 -
Android 多个文件合成拼接成一个文件
在工作开发中进程会遇到文件合成和拼接一类的奇奇怪怪的要求,经过多方查阅资料和总结,在这里把自己的工具类分享给大家,仅供产考,如有什么弊端,请多指教一.确定手机是否有读写文件的权限1.在manifsets为你的应用添加上读写权限<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&...原创 2019-07-17 11:04:40 · 1422 阅读 · 0 评论 -
JAVA 身份证校验
身份证校验最重要的是对应的正则表达式 //正则表达式 public static String strRule="^[1-9][0-7]\\d{4}((19\\d{2}(0[13-9]|1[012])(0[1-9]|[12]\\d|30))|(19\\d{2}(0[13578]|1[02])31)|(19\\d{2}02(0[1-9]|1\\d|2[0-8]))|(19([135...转载 2019-07-17 11:19:52 · 184 阅读 · 0 评论 -
Android 设置渐变色 渐变色XML文件
Android的资源文件下创建相应的文件名,记住设置文件后缀必须为XML<shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startColor="#fe5858" android:endColor="#fe7349" /> ...原创 2019-07-22 14:46:58 · 712 阅读 · 0 评论