File tree Expand file tree Collapse file tree 6 files changed +26
-10
lines changed
src/main/java/dev/utils/app Expand file tree Collapse file tree 6 files changed +26
-10
lines changed Original file line number Diff line number Diff line change 11
22[ ![ GitHub] ( https://img.shields.io/badge/GitHub-afkT-blue.svg )] ( https://github.com/afkT )
33[ ![ GitHub license] ( https://img.shields.io/github/license/afkT/DevUtils.svg )] ( https://github.com/afkT/DevUtils/blob/master/LICENSE )
4- [ ![ Bintray] ( https://img.shields.io/badge/DevUtils-2.0.0 -brightgreen.svg )] ( https://bintray.com/afkt/maven/DevAppX )
4+ [ ![ Bintray] ( https://img.shields.io/badge/DevUtils-2.0.1 -brightgreen.svg )] ( https://bintray.com/afkt/maven/DevAppX )
55[ ![ API] ( https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat )] ( https://android-arsenal.com/api?level=14 )
66[ ![ Utils] ( https://img.shields.io/badge/utils-160+-ff69b4.svg )] ( https://github.com/afkT/DevUtils/blob/master/lib/DevApp/README.md )
77
7171``` java
7272
7373// DevApp Android 工具类库
74- implementation ' com.afkt:DevAppX:2.0.0 '
74+ implementation ' com.afkt:DevAppX:2.0.1 '
7575
7676// DevAssist 快捷功能辅助类库
7777implementation ' com.afkt:DevAssist:1.0.4'
@@ -80,7 +80,7 @@ implementation 'com.afkt:DevAssist:1.0.4'
8080implementation ' com.afkt:DevBase:1.0.0'
8181
8282// DevJava Java 工具类库 ( 不依赖 android api )
83- implementation ' com.afkt:DevJava:1.1.4 ' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava
83+ implementation ' com.afkt:DevJava:1.1.5 ' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava
8484
8585// DevWidget 自定义 View UI 库
8686implementation ' com.afkt:DevWidgetX:1.0.4'
Original file line number Diff line number Diff line change 4444 // ===========
4545
4646 // 版本号
47- dev_app_versionCode : 200 ,
47+ dev_app_versionCode : 201 ,
4848 // 版本名
49- dev_app_versionName : ' 2.0.0 ' ,
49+ dev_app_versionName : ' 2.0.1 ' ,
5050
5151 // 版本号
5252 dev_assist_versionCode : 104 ,
5959 dev_base_versionName : ' 1.0.0' ,
6060
6161 // 版本号
62- dev_java_versionCode : 114 ,
62+ dev_java_versionCode : 115 ,
6363 // 版本名
64- dev_java_version : ' 1.1.4 ' ,
64+ dev_java_version : ' 1.1.5 ' ,
6565
6666 // 版本号
6767 dev_widget_versionCode : 104 ,
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ Version 2.0.1 *(2020-09-07)*
88
99* ` [Add] ` StringUtils#forJoint
1010
11+ * ` [Add] ` AppCommonUtils#isR
12+
1113* ` [Add] ` SnackbarUtils#getSnackbarLayout、getSnackbarContentLayout
1214
1315* ` [Add] ` ClickUtils#setCheckViewId 方法, OnDebouncingClickListener、OnCountClickListener 事件
Original file line number Diff line number Diff line change 1- f290560eb4725477277f5972d2a96846562bcf31
1+ f9d82b7c0cab79873379da406bc8afdaac161435
Original file line number Diff line number Diff line change @@ -302,6 +302,14 @@ public static boolean isQ() {
302302 return Build .VERSION .SDK_INT >= Build .VERSION_CODES .Q ;
303303 }
304304
305+ /**
306+ * 是否在 11.0 版本及以上
307+ * @return 是否在 11.0 版本及以上
308+ */
309+ public static boolean isR () {
310+ return Build .VERSION .SDK_INT >= Build .VERSION_CODES .R ;
311+ }
312+
305313 /**
306314 * 转换 SDK 版本 convertSDKVersion(14) = Android 4.0.0-2
307315 * @return SDK 版本
@@ -375,6 +383,8 @@ public static String convertSDKVersion(final int sdkVersion) {
375383 return "Android 9.0" ;
376384 case 29 :
377385 return "Android 10.0" ;
386+ case 30 :
387+ return "Android 11.0" ;
378388 }
379389 return "unknown" ;
380390 }
Original file line number Diff line number Diff line change 22## Gradle
33
44``` java
5- implementation ' com.afkt:DevJava:1.1.4 '
5+ implementation ' com.afkt:DevJava:1.1.5 '
66```
77
88## 目录结构
@@ -777,11 +777,14 @@ JCLogUtils.setPrint(new JCLogUtils.Print() {});
777777
778778| 方法 | 注释 |
779779| :- | :- |
780+ | calcScale | 计算比例 ( 商 ) |
781+ | calcScaleToMath | 计算比例 ( 被除数 ( 最大值 ) / 除数 ( 最小值 ) ) |
780782| calcScaleToWidth | 计算缩放比例 - 根据宽度比例转换高度 |
781783| calcScaleToHeight | 计算缩放比例 - 根据高度比例转换宽度 |
782784| calcWidthHeightToScale | 通过宽度、高度根据对应的比例, 转换成对应的比例宽度高度 - 智能转换 |
783785| calcWidthToScale | 以宽度为基准, 转换对应比例的高度 |
784786| calcHeightToScale | 以高度为基准, 转换对应比例的宽度 |
787+ | calcXY | 计算 XY 比 |
785788
786789
787790* ** 流操作工具类 ->** [ StreamUtils.java] ( https://github.com/afkT/DevUtils/blob/master/lib/DevJava/src/main/java/dev/utils/common/StreamUtils.java )
@@ -823,7 +826,8 @@ JCLogUtils.setPrint(new JCLogUtils.Print() {});
823826| appendSpace | 追加空格 |
824827| appendTab | 追加 Tab |
825828| appendLine | 追加换行 |
826- | forString | 循环追加字符串 |
829+ | forString | 循环指定数量字符串 |
830+ | forJoint | 循环追加 |
827831| colonSplit | 冒号分割处理 |
828832| toCheckValue | 检查字符串 |
829833| toCheckValues | 检查字符串 - 多个值 |
You can’t perform that action at this time.
0 commit comments