diff --git a/README.md b/README.md index c9cebab..d4d6efd 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ MyUtils是一个包含全方位的工具的工具项目。项目里面提供Base File文件操作工具、日期获取和计算工具、界面跳转Intent操作工具、字符串验证和数值转换操作工具、手机震动工具、系统资源操作工具、网络检测工具、 wifi操作工具、单位换算工具、zip压缩和解压操作工具、XML解析操作工具(只支持几种指定格式)、图片加载和处理工具,数据库操作(增删改查)工具。 -### 内部远程依赖Library(已经远程依赖的Library,切勿主项目里重复依赖。) +### 内部远程依赖Library(已经远程依赖的Library,切勿主项目里重复依赖。) **BaseLogger:'com.github.liqinew:baselogger:V.1.0.0'**
diff --git a/allclasses-frame.html b/allclasses-frame.html new file mode 100644 index 0000000..fddb450 --- /dev/null +++ b/allclasses-frame.html @@ -0,0 +1,51 @@ + + + + + + +所有类 + + + + + +

所有类

+
+ +
+ + diff --git a/allclasses-noframe.html b/allclasses-noframe.html new file mode 100644 index 0000000..e7438c7 --- /dev/null +++ b/allclasses-noframe.html @@ -0,0 +1,51 @@ + + + + + + +所有类 + + + + + +

所有类

+
+ +
+ + diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 059d3d9..0000000 --- a/build.gradle +++ /dev/null @@ -1,27 +0,0 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. -//关联配置gradle -apply from: "config.gradle" -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.android.tools.build:gradle:2.2.3' - - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - //配置Jitpack插件 - classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' - } -} - -allprojects { - repositories { - maven { url 'https://jitpack.io' } - jcenter() - } -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/com/liqi/utils/ActivityUtil.html b/com/liqi/utils/ActivityUtil.html new file mode 100644 index 0000000..5565d4d --- /dev/null +++ b/com/liqi/utils/ActivityUtil.html @@ -0,0 +1,589 @@ + + + + + + +ActivityUtil + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

类 ActivityUtil

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/FDUnitUtil.html b/com/liqi/utils/FDUnitUtil.html new file mode 100644 index 0000000..ac0ebe6 --- /dev/null +++ b/com/liqi/utils/FDUnitUtil.html @@ -0,0 +1,358 @@ + + + + + + +FDUnitUtil + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

类 FDUnitUtil

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/NetWorkUtil.html b/com/liqi/utils/NetWorkUtil.html new file mode 100644 index 0000000..8e40a24 --- /dev/null +++ b/com/liqi/utils/NetWorkUtil.html @@ -0,0 +1,346 @@ + + + + + + +NetWorkUtil + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

类 NetWorkUtil

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/NumericFormatUtils.NumericFormatTypeEnum.html b/com/liqi/utils/NumericFormatUtils.NumericFormatTypeEnum.html new file mode 100644 index 0000000..8152b22 --- /dev/null +++ b/com/liqi/utils/NumericFormatUtils.NumericFormatTypeEnum.html @@ -0,0 +1,351 @@ + + + + + + +NumericFormatUtils.NumericFormatTypeEnum + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

枚举 NumericFormatUtils.NumericFormatTypeEnum

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/NumericFormatUtils.html b/com/liqi/utils/NumericFormatUtils.html new file mode 100644 index 0000000..8886b3b --- /dev/null +++ b/com/liqi/utils/NumericFormatUtils.html @@ -0,0 +1,330 @@ + + + + + + +NumericFormatUtils + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

类 NumericFormatUtils

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/StaticUtility.PixelsHeightWidth.html b/com/liqi/utils/StaticUtility.PixelsHeightWidth.html new file mode 100644 index 0000000..6b3b227 --- /dev/null +++ b/com/liqi/utils/StaticUtility.PixelsHeightWidth.html @@ -0,0 +1,351 @@ + + + + + + +StaticUtility.PixelsHeightWidth + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

枚举 StaticUtility.PixelsHeightWidth

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/StaticUtility.html b/com/liqi/utils/StaticUtility.html new file mode 100644 index 0000000..242c2c7 --- /dev/null +++ b/com/liqi/utils/StaticUtility.html @@ -0,0 +1,801 @@ + + + + + + +StaticUtility + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

类 StaticUtility

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/SystemMemorySpaceGetUtil.html b/com/liqi/utils/SystemMemorySpaceGetUtil.html new file mode 100644 index 0000000..a0ea2f9 --- /dev/null +++ b/com/liqi/utils/SystemMemorySpaceGetUtil.html @@ -0,0 +1,517 @@ + + + + + + +SystemMemorySpaceGetUtil + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

类 SystemMemorySpaceGetUtil

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/Validation.html b/com/liqi/utils/Validation.html new file mode 100644 index 0000000..80ac261 --- /dev/null +++ b/com/liqi/utils/Validation.html @@ -0,0 +1,764 @@ + + + + + + +Validation + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

类 Validation

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/VibratorUtil.html b/com/liqi/utils/VibratorUtil.html new file mode 100644 index 0000000..a6d6997 --- /dev/null +++ b/com/liqi/utils/VibratorUtil.html @@ -0,0 +1,303 @@ + + + + + + +VibratorUtil + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

类 VibratorUtil

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/ZodiacUtil.html b/com/liqi/utils/ZodiacUtil.html new file mode 100644 index 0000000..a9b6df8 --- /dev/null +++ b/com/liqi/utils/ZodiacUtil.html @@ -0,0 +1,349 @@ + + + + + + +ZodiacUtil + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils
+

类 ZodiacUtil

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/db/BaseDBManagerOperation.html b/com/liqi/utils/db/BaseDBManagerOperation.html new file mode 100644 index 0000000..0f82a89 --- /dev/null +++ b/com/liqi/utils/db/BaseDBManagerOperation.html @@ -0,0 +1,969 @@ + + + + + + +BaseDBManagerOperation + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.db
+

类 BaseDBManagerOperation

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/db/DataBaseTypeEnum.html b/com/liqi/utils/db/DataBaseTypeEnum.html new file mode 100644 index 0000000..25f6260 --- /dev/null +++ b/com/liqi/utils/db/DataBaseTypeEnum.html @@ -0,0 +1,378 @@ + + + + + + +DataBaseTypeEnum + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.db
+

枚举 DataBaseTypeEnum

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/db/DataBaseValuesEnum.html b/com/liqi/utils/db/DataBaseValuesEnum.html new file mode 100644 index 0000000..5afa98d --- /dev/null +++ b/com/liqi/utils/db/DataBaseValuesEnum.html @@ -0,0 +1,418 @@ + + + + + + +DataBaseValuesEnum + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.db
+

枚举 DataBaseValuesEnum

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/db/package-frame.html b/com/liqi/utils/db/package-frame.html new file mode 100644 index 0000000..db76a1e --- /dev/null +++ b/com/liqi/utils/db/package-frame.html @@ -0,0 +1,25 @@ + + + + + + +com.liqi.utils.db + + + + + +

com.liqi.utils.db

+
+

+ +

枚举

+ +
+ + diff --git a/com/liqi/utils/db/package-summary.html b/com/liqi/utils/db/package-summary.html new file mode 100644 index 0000000..e4a2244 --- /dev/null +++ b/com/liqi/utils/db/package-summary.html @@ -0,0 +1,161 @@ + + + + + + +com.liqi.utils.db + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包 com.liqi.utils.db

+
+
+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/db/package-tree.html b/com/liqi/utils/db/package-tree.html new file mode 100644 index 0000000..69d6170 --- /dev/null +++ b/com/liqi/utils/db/package-tree.html @@ -0,0 +1,148 @@ + + + + + + +com.liqi.utils.db 类分层结构 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包com.liqi.utils.db的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +

枚举分层结构

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/encoding/AESEncryptor.html b/com/liqi/utils/encoding/AESEncryptor.html new file mode 100644 index 0000000..21245c3 --- /dev/null +++ b/com/liqi/utils/encoding/AESEncryptor.html @@ -0,0 +1,401 @@ + + + + + + +AESEncryptor + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.encoding
+

类 AESEncryptor

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/encoding/AndroidAESEncryptor.html b/com/liqi/utils/encoding/AndroidAESEncryptor.html new file mode 100644 index 0000000..a0757d8 --- /dev/null +++ b/com/liqi/utils/encoding/AndroidAESEncryptor.html @@ -0,0 +1,697 @@ + + + + + + +AndroidAESEncryptor + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.encoding
+

类 AndroidAESEncryptor

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/encoding/Base64.html b/com/liqi/utils/encoding/Base64.html new file mode 100644 index 0000000..67317c7 --- /dev/null +++ b/com/liqi/utils/encoding/Base64.html @@ -0,0 +1,349 @@ + + + + + + +Base64 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.encoding
+

类 Base64

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/encoding/JToAAesEncryptor.html b/com/liqi/utils/encoding/JToAAesEncryptor.html new file mode 100644 index 0000000..993eaa2 --- /dev/null +++ b/com/liqi/utils/encoding/JToAAesEncryptor.html @@ -0,0 +1,462 @@ + + + + + + +JToAAesEncryptor + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.encoding
+

类 JToAAesEncryptor

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/encoding/MD5Util.html b/com/liqi/utils/encoding/MD5Util.html new file mode 100644 index 0000000..fe3984e --- /dev/null +++ b/com/liqi/utils/encoding/MD5Util.html @@ -0,0 +1,305 @@ + + + + + + +MD5Util + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.encoding
+

类 MD5Util

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/encoding/package-frame.html b/com/liqi/utils/encoding/package-frame.html new file mode 100644 index 0000000..50089b5 --- /dev/null +++ b/com/liqi/utils/encoding/package-frame.html @@ -0,0 +1,24 @@ + + + + + + +com.liqi.utils.encoding + + + + + +

com.liqi.utils.encoding

+
+

+ +
+ + diff --git a/com/liqi/utils/encoding/package-summary.html b/com/liqi/utils/encoding/package-summary.html new file mode 100644 index 0000000..ad826ad --- /dev/null +++ b/com/liqi/utils/encoding/package-summary.html @@ -0,0 +1,164 @@ + + + + + + +com.liqi.utils.encoding + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包 com.liqi.utils.encoding

+
+
+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/encoding/package-tree.html b/com/liqi/utils/encoding/package-tree.html new file mode 100644 index 0000000..e44de12 --- /dev/null +++ b/com/liqi/utils/encoding/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +com.liqi.utils.encoding 类分层结构 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包com.liqi.utils.encoding的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/file/FileSizeFormattingUtil.html b/com/liqi/utils/file/FileSizeFormattingUtil.html new file mode 100644 index 0000000..783a544 --- /dev/null +++ b/com/liqi/utils/file/FileSizeFormattingUtil.html @@ -0,0 +1,315 @@ + + + + + + +FileSizeFormattingUtil + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.file
+

类 FileSizeFormattingUtil

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/file/StaticFileUtils.SizeTypeEnum.html b/com/liqi/utils/file/StaticFileUtils.SizeTypeEnum.html new file mode 100644 index 0000000..31ae9ae --- /dev/null +++ b/com/liqi/utils/file/StaticFileUtils.SizeTypeEnum.html @@ -0,0 +1,380 @@ + + + + + + +StaticFileUtils.SizeTypeEnum + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.file
+

枚举 StaticFileUtils.SizeTypeEnum

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/file/StaticFileUtils.html b/com/liqi/utils/file/StaticFileUtils.html new file mode 100644 index 0000000..d951718 --- /dev/null +++ b/com/liqi/utils/file/StaticFileUtils.html @@ -0,0 +1,693 @@ + + + + + + +StaticFileUtils + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.file
+

类 StaticFileUtils

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/file/package-frame.html b/com/liqi/utils/file/package-frame.html new file mode 100644 index 0000000..278de0e --- /dev/null +++ b/com/liqi/utils/file/package-frame.html @@ -0,0 +1,26 @@ + + + + + + +com.liqi.utils.file + + + + + +

com.liqi.utils.file

+
+

+ +

枚举

+ +
+ + diff --git a/com/liqi/utils/file/package-summary.html b/com/liqi/utils/file/package-summary.html new file mode 100644 index 0000000..bd15442 --- /dev/null +++ b/com/liqi/utils/file/package-summary.html @@ -0,0 +1,165 @@ + + + + + + +com.liqi.utils.file + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包 com.liqi.utils.file

+
+
+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/file/package-tree.html b/com/liqi/utils/file/package-tree.html new file mode 100644 index 0000000..6b68231 --- /dev/null +++ b/com/liqi/utils/file/package-tree.html @@ -0,0 +1,149 @@ + + + + + + +com.liqi.utils.file 类分层结构 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包com.liqi.utils.file的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +

枚举分层结构

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/imageloader/ImageLoaderUtils.html b/com/liqi/utils/imageloader/ImageLoaderUtils.html new file mode 100644 index 0000000..39c9ca9 --- /dev/null +++ b/com/liqi/utils/imageloader/ImageLoaderUtils.html @@ -0,0 +1,444 @@ + + + + + + +ImageLoaderUtils + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.imageloader
+

类 ImageLoaderUtils

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/imageloader/ImageStaticDispose.html b/com/liqi/utils/imageloader/ImageStaticDispose.html new file mode 100644 index 0000000..cfa9cc3 --- /dev/null +++ b/com/liqi/utils/imageloader/ImageStaticDispose.html @@ -0,0 +1,645 @@ + + + + + + +ImageStaticDispose + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.imageloader
+

类 ImageStaticDispose

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/imageloader/package-frame.html b/com/liqi/utils/imageloader/package-frame.html new file mode 100644 index 0000000..cce965e --- /dev/null +++ b/com/liqi/utils/imageloader/package-frame.html @@ -0,0 +1,22 @@ + + + + + + +com.liqi.utils.imageloader + + + + + +

com.liqi.utils.imageloader

+
+

+ +
+ + diff --git a/com/liqi/utils/imageloader/package-summary.html b/com/liqi/utils/imageloader/package-summary.html new file mode 100644 index 0000000..3c81537 --- /dev/null +++ b/com/liqi/utils/imageloader/package-summary.html @@ -0,0 +1,149 @@ + + + + + + +com.liqi.utils.imageloader + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包 com.liqi.utils.imageloader

+
+
+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/imageloader/package-tree.html b/com/liqi/utils/imageloader/package-tree.html new file mode 100644 index 0000000..f6fb5b8 --- /dev/null +++ b/com/liqi/utils/imageloader/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +com.liqi.utils.imageloader 类分层结构 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包com.liqi.utils.imageloader的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/package-frame.html b/com/liqi/utils/package-frame.html new file mode 100644 index 0000000..0c26c3a --- /dev/null +++ b/com/liqi/utils/package-frame.html @@ -0,0 +1,34 @@ + + + + + + +com.liqi.utils + + + + + +

com.liqi.utils

+
+

+ +

枚举

+ +
+ + diff --git a/com/liqi/utils/package-summary.html b/com/liqi/utils/package-summary.html new file mode 100644 index 0000000..3e4b4ad --- /dev/null +++ b/com/liqi/utils/package-summary.html @@ -0,0 +1,217 @@ + + + + + + +com.liqi.utils + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包 com.liqi.utils

+
+
+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/package-tree.html b/com/liqi/utils/package-tree.html new file mode 100644 index 0000000..0bc6f7d --- /dev/null +++ b/com/liqi/utils/package-tree.html @@ -0,0 +1,157 @@ + + + + + + +com.liqi.utils 类分层结构 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包com.liqi.utils的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +

枚举分层结构

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/spf/BaseSharePreference.html b/com/liqi/utils/spf/BaseSharePreference.html new file mode 100644 index 0000000..d37c3cd --- /dev/null +++ b/com/liqi/utils/spf/BaseSharePreference.html @@ -0,0 +1,484 @@ + + + + + + +BaseSharePreference + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.spf
+

类 BaseSharePreference

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/spf/BaseSharePreferenceTypeEnum.html b/com/liqi/utils/spf/BaseSharePreferenceTypeEnum.html new file mode 100644 index 0000000..51f4d81 --- /dev/null +++ b/com/liqi/utils/spf/BaseSharePreferenceTypeEnum.html @@ -0,0 +1,408 @@ + + + + + + +BaseSharePreferenceTypeEnum + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.spf
+

枚举 BaseSharePreferenceTypeEnum

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/spf/package-frame.html b/com/liqi/utils/spf/package-frame.html new file mode 100644 index 0000000..71ea2c7 --- /dev/null +++ b/com/liqi/utils/spf/package-frame.html @@ -0,0 +1,25 @@ + + + + + + +com.liqi.utils.spf + + + + + +

com.liqi.utils.spf

+
+

+ +

枚举

+ +
+ + diff --git a/com/liqi/utils/spf/package-summary.html b/com/liqi/utils/spf/package-summary.html new file mode 100644 index 0000000..0dac8d6 --- /dev/null +++ b/com/liqi/utils/spf/package-summary.html @@ -0,0 +1,161 @@ + + + + + + +com.liqi.utils.spf + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包 com.liqi.utils.spf

+
+
+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/spf/package-tree.html b/com/liqi/utils/spf/package-tree.html new file mode 100644 index 0000000..10361fd --- /dev/null +++ b/com/liqi/utils/spf/package-tree.html @@ -0,0 +1,148 @@ + + + + + + +com.liqi.utils.spf 类分层结构 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包com.liqi.utils.spf的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +

枚举分层结构

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/time/FormatTimeUtils.html b/com/liqi/utils/time/FormatTimeUtils.html new file mode 100644 index 0000000..1e0c239 --- /dev/null +++ b/com/liqi/utils/time/FormatTimeUtils.html @@ -0,0 +1,353 @@ + + + + + + +FormatTimeUtils + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.time
+

类 FormatTimeUtils

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/time/TimeHMSTransitionEnum.html b/com/liqi/utils/time/TimeHMSTransitionEnum.html new file mode 100644 index 0000000..240371e --- /dev/null +++ b/com/liqi/utils/time/TimeHMSTransitionEnum.html @@ -0,0 +1,393 @@ + + + + + + +TimeHMSTransitionEnum + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.time
+

枚举 TimeHMSTransitionEnum

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/time/TimeUtil.html b/com/liqi/utils/time/TimeUtil.html new file mode 100644 index 0000000..acf08e2 --- /dev/null +++ b/com/liqi/utils/time/TimeUtil.html @@ -0,0 +1,1005 @@ + + + + + + +TimeUtil + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.time
+

类 TimeUtil

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/time/package-frame.html b/com/liqi/utils/time/package-frame.html new file mode 100644 index 0000000..5bf991b --- /dev/null +++ b/com/liqi/utils/time/package-frame.html @@ -0,0 +1,26 @@ + + + + + + +com.liqi.utils.time + + + + + +

com.liqi.utils.time

+
+

+ +

枚举

+ +
+ + diff --git a/com/liqi/utils/time/package-summary.html b/com/liqi/utils/time/package-summary.html new file mode 100644 index 0000000..e8bf674 --- /dev/null +++ b/com/liqi/utils/time/package-summary.html @@ -0,0 +1,171 @@ + + + + + + +com.liqi.utils.time + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包 com.liqi.utils.time

+
+
+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/time/package-tree.html b/com/liqi/utils/time/package-tree.html new file mode 100644 index 0000000..7940a2b --- /dev/null +++ b/com/liqi/utils/time/package-tree.html @@ -0,0 +1,149 @@ + + + + + + +com.liqi.utils.time 类分层结构 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包com.liqi.utils.time的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +

枚举分层结构

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/wifi/OnWifiControllerListener.html b/com/liqi/utils/wifi/OnWifiControllerListener.html new file mode 100644 index 0000000..0edc979 --- /dev/null +++ b/com/liqi/utils/wifi/OnWifiControllerListener.html @@ -0,0 +1,277 @@ + + + + + + +OnWifiControllerListener + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.wifi
+

接口 OnWifiControllerListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/wifi/WifiController.html b/com/liqi/utils/wifi/WifiController.html new file mode 100644 index 0000000..024930d --- /dev/null +++ b/com/liqi/utils/wifi/WifiController.html @@ -0,0 +1,584 @@ + + + + + + +WifiController + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.wifi
+

类 WifiController

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/wifi/package-frame.html b/com/liqi/utils/wifi/package-frame.html new file mode 100644 index 0000000..e73975e --- /dev/null +++ b/com/liqi/utils/wifi/package-frame.html @@ -0,0 +1,25 @@ + + + + + + +com.liqi.utils.wifi + + + + + +

com.liqi.utils.wifi

+
+

接口

+ +

+ +
+ + diff --git a/com/liqi/utils/wifi/package-summary.html b/com/liqi/utils/wifi/package-summary.html new file mode 100644 index 0000000..c326e94 --- /dev/null +++ b/com/liqi/utils/wifi/package-summary.html @@ -0,0 +1,161 @@ + + + + + + +com.liqi.utils.wifi + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包 com.liqi.utils.wifi

+
+
+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/wifi/package-tree.html b/com/liqi/utils/wifi/package-tree.html new file mode 100644 index 0000000..722c350 --- /dev/null +++ b/com/liqi/utils/wifi/package-tree.html @@ -0,0 +1,140 @@ + + + + + + +com.liqi.utils.wifi 类分层结构 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包com.liqi.utils.wifi的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +

接口分层结构

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/xml/XmlLabelData.html b/com/liqi/utils/xml/XmlLabelData.html new file mode 100644 index 0000000..e323207 --- /dev/null +++ b/com/liqi/utils/xml/XmlLabelData.html @@ -0,0 +1,327 @@ + + + + + + +XmlLabelData + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.xml
+

类 XmlLabelData

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/xml/XmlUtils.html b/com/liqi/utils/xml/XmlUtils.html new file mode 100644 index 0000000..8b4b7b2 --- /dev/null +++ b/com/liqi/utils/xml/XmlUtils.html @@ -0,0 +1,378 @@ + + + + + + +XmlUtils + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.xml
+

类 XmlUtils

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/xml/package-frame.html b/com/liqi/utils/xml/package-frame.html new file mode 100644 index 0000000..05ae916 --- /dev/null +++ b/com/liqi/utils/xml/package-frame.html @@ -0,0 +1,22 @@ + + + + + + +com.liqi.utils.xml + + + + + +

com.liqi.utils.xml

+
+

+ +
+ + diff --git a/com/liqi/utils/xml/package-summary.html b/com/liqi/utils/xml/package-summary.html new file mode 100644 index 0000000..f1c83ac --- /dev/null +++ b/com/liqi/utils/xml/package-summary.html @@ -0,0 +1,149 @@ + + + + + + +com.liqi.utils.xml + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包 com.liqi.utils.xml

+
+
+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/xml/package-tree.html b/com/liqi/utils/xml/package-tree.html new file mode 100644 index 0000000..f8019eb --- /dev/null +++ b/com/liqi/utils/xml/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +com.liqi.utils.xml 类分层结构 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包com.liqi.utils.xml的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/zip/ZipUtils.html b/com/liqi/utils/zip/ZipUtils.html new file mode 100644 index 0000000..d799379 --- /dev/null +++ b/com/liqi/utils/zip/ZipUtils.html @@ -0,0 +1,738 @@ + + + + + + +ZipUtils + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + + +
+
com.liqi.utils.zip
+

类 ZipUtils

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/zip/package-frame.html b/com/liqi/utils/zip/package-frame.html new file mode 100644 index 0000000..c37114f --- /dev/null +++ b/com/liqi/utils/zip/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +com.liqi.utils.zip + + + + + +

com.liqi.utils.zip

+
+

+ +
+ + diff --git a/com/liqi/utils/zip/package-summary.html b/com/liqi/utils/zip/package-summary.html new file mode 100644 index 0000000..df362c0 --- /dev/null +++ b/com/liqi/utils/zip/package-summary.html @@ -0,0 +1,143 @@ + + + + + + +com.liqi.utils.zip + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包 com.liqi.utils.zip

+
+
+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/com/liqi/utils/zip/package-tree.html b/com/liqi/utils/zip/package-tree.html new file mode 100644 index 0000000..b553bd2 --- /dev/null +++ b/com/liqi/utils/zip/package-tree.html @@ -0,0 +1,136 @@ + + + + + + +com.liqi.utils.zip 类分层结构 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

程序包com.liqi.utils.zip的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/config.gradle b/config.gradle deleted file mode 100644 index 7bcaa3a..0000000 --- a/config.gradle +++ /dev/null @@ -1,20 +0,0 @@ -ext { - android = [ - compileSdkVersion: 25, - buildToolsVersion: "25.0.1", - - minSdkVersion : 14, - targetSdkVersion : 22, - ] - - dependencies = [ - //baselogger远程依赖 - log : 'com.github.liqinew:baselogger:V.1.0.0', - //V7依赖 - appcompat_v7 : 'com.android.support:appcompat-v7:25.2.0', - //staticutils中image-loader图片加载框架依赖 - staticutils_image_loader: 'com.nostra13.universalimageloader:universal-image-loader:1.9.5', - //staticutils中图册打开和相册打开和图片压缩框架。依赖 - staticutils_photoframe : 'com.github.liqinew:photoframe:v.1.0.3', - ] -} \ No newline at end of file diff --git a/constant-values.html b/constant-values.html new file mode 100644 index 0000000..0974535 --- /dev/null +++ b/constant-values.html @@ -0,0 +1,152 @@ + + + + + + +常量字段值 + + + + + + + + +
+ + +
跳过导航链接
+ + + + +
+ + +
+

常量字段值

+

目录

+ +
+
+ + +

com.liqi.*

+ +
+ +
+ + +
跳过导航链接
+ + + + +
+ + + + diff --git a/demo/.gitignore b/demo/.gitignore deleted file mode 100644 index 796b96d..0000000 --- a/demo/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/demo/build.gradle b/demo/build.gradle deleted file mode 100644 index 56fce7d..0000000 --- a/demo/build.gradle +++ /dev/null @@ -1,29 +0,0 @@ -apply plugin: 'com.android.application' - -android { - compileSdkVersion rootProject.ext.android.compileSdkVersion - buildToolsVersion rootProject.ext.android.buildToolsVersion - defaultConfig { - applicationId "com.liqi.myutils.demo" - minSdkVersion rootProject.ext.android.minSdkVersion - targetSdkVersion rootProject.ext.android.targetSdkVersion - versionCode 1 - versionName "1.0" - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" - } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } -} - -dependencies { - compile fileTree(include: ['*.jar'], dir: 'libs') - androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { - exclude group: 'com.android.support', module: 'support-annotations' - }) - testCompile 'junit:junit:4.12' - compile project(':utils') -} diff --git a/demo/src/main/AndroidManifest.xml b/demo/src/main/AndroidManifest.xml deleted file mode 100644 index 41c930e..0000000 --- a/demo/src/main/AndroidManifest.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/demo/src/main/assets/testFile.txt b/demo/src/main/assets/testFile.txt deleted file mode 100644 index 5141f8f..0000000 --- a/demo/src/main/assets/testFile.txt +++ /dev/null @@ -1 +0,0 @@ -如果你能看到此内容,那么就说明测试文件写入成功。 \ No newline at end of file diff --git a/demo/src/main/assets/testZip.zip b/demo/src/main/assets/testZip.zip deleted file mode 100644 index b0b2b2f..0000000 Binary files a/demo/src/main/assets/testZip.zip and /dev/null differ diff --git a/demo/src/main/java/com/liqi/myutils/demo/TestApplication.java b/demo/src/main/java/com/liqi/myutils/demo/TestApplication.java deleted file mode 100644 index 5f62812..0000000 --- a/demo/src/main/java/com/liqi/myutils/demo/TestApplication.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.liqi.myutils.demo; - -import android.app.Application; - -import com.liqi.utils.imageloader.ImageLoaderUtils; - -/** - * Created by LiQi on 2018/1/29. - */ - -public class TestApplication extends Application { - @Override - public void onCreate() { - super.onCreate(); - //ImageLoader图片加载初始化 - ImageLoaderUtils.init(getApplicationContext(), "liqi/test/image"); - } -} diff --git a/demo/src/main/java/com/liqi/myutils/demo/TestOtherActivity.java b/demo/src/main/java/com/liqi/myutils/demo/TestOtherActivity.java deleted file mode 100644 index 2b8ba27..0000000 --- a/demo/src/main/java/com/liqi/myutils/demo/TestOtherActivity.java +++ /dev/null @@ -1,600 +0,0 @@ -package com.liqi.myutils.demo; - -import android.os.Bundle; -import android.support.annotation.Nullable; -import android.support.v7.app.AppCompatActivity; -import android.view.View; -import android.widget.Button; -import android.widget.ImageView; -import android.widget.TextView; -import android.widget.Toast; - -import com.liqi.Logger; -import com.liqi.myutils.demo.db.TestDataBaseOperateActivity; -import com.liqi.utils.ActivityUtil; -import com.liqi.utils.FDUnitUtil; -import com.liqi.utils.NetWorkUtil; -import com.liqi.utils.StaticUtility; -import com.liqi.utils.Validation; -import com.liqi.utils.VibratorUtil; -import com.liqi.utils.encoding.AESEncryptor; -import com.liqi.utils.encoding.Base64; -import com.liqi.utils.encoding.MD5Util; -import com.liqi.utils.file.StaticFileUtils; -import com.liqi.utils.imageloader.ImageLoaderUtils; -import com.liqi.utils.spf.BaseSharePreference; -import com.liqi.utils.spf.BaseSharePreferenceTypeEnum; -import com.liqi.utils.time.TimeUtil; -import com.liqi.utils.wifi.WifiController; -import com.liqi.utils.xml.XmlUtils; -import com.liqi.utils.zip.ZipUtils; - -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.util.List; -import java.util.Map; - -/** - * 其它功能测试用例 - * - * MVC结构模式 - * - * Created by LiQi on 2017/12/13. - */ - -public class TestOtherActivity extends AppCompatActivity { - private int mType, mAseType, mBase64, mTestFile, mWifiType, mZipType; - - @Override - protected void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.test_other_activity); - - //SharePreference操作 - final TextView testOtherTextview = (TextView) findViewById(R.id.test_other_textview); - findViewById(R.id.test_other_button).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - mType++; - Button button = (Button) v; - switch (mType) { - case 1: - getBaseSharePreference().putObjectKeyValue("test", button.getText().toString()); - button.setText("SharePreference读取值>>>2"); - testOtherTextview.setText(""); - break; - case 2: - String test = getBaseSharePreference().getObjectKeyValue("test", BaseSharePreferenceTypeEnum.SP_STRING); - testOtherTextview.setText(test); - button.setText("SharePreference存储值>>>1"); - mType = 0; - break; - } - } - }); - - //AES加密 - findViewById(R.id.test_other_button2).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - mAseType++; - Button button = (Button) v; - String content = button.getText().toString().split(":")[1]; - switch (mAseType) { - case 1: - try { - String encryptContent = AESEncryptor.encrypt("123456", content); - button.setText("AES要解密内容:" + encryptContent); - } catch (Exception e) { - e.printStackTrace(); - } - break; - case 2: - try { - String decryptContent = AESEncryptor.decrypt("123456", content); - button.setText("AES要加密内容:" + decryptContent); - } catch (Exception e) { - e.printStackTrace(); - } - mAseType = 0; - break; - } - } - }); - - //Base64编码解码 - findViewById(R.id.test_other_button3).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - mBase64++; - Button button = (Button) v; - String content = button.getText().toString().split(":")[1]; - switch (mBase64) { - case 1: - - String encode = Base64.encode(content); - button.setText("Base64要解码内容:" + encode); - break; - case 2: - String decode = Base64.decode(content); - button.setText("Base64要编码内容:" + decode); - mBase64 = 0; - break; - } - } - }); - - //MD5编码 - findViewById(R.id.test_other_button4).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - Button button = (Button) v; - String content = button.getText().toString().split(":")[1]; - String md5Encode = MD5Util.md5Encode(content, "utf-8"); - button.setText("MD5加密后内容:" + md5Encode); - } - }); - - //File文件操作 - findViewById(R.id.test_other_button5).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - final Button button = (Button) v; - //写入 - if (mTestFile == 0) { - button.setText("File文件正在写入..."); - button.setEnabled(false); - new Thread(new Runnable() { - @Override - public void run() { - try { - InputStream testFile = getAssets().open("testFile.txt"); - /** - * 根据传过去的文件目录路径和文件名来创建路径,并且返回路径File对象。 - *

- * 没有创建,有直接返回。 - *

- * 已经判断是否有SD卡。如果有就拼接SD卡路径,没有就拼接手机内存路径 - *

- */ - final File foundFile = StaticFileUtils.nonentityFoundFile(TestOtherActivity.this, "test/file", "testFile.text"); - - /** - * 文件写出。写出成功为true,写出失败为false - */ - if (StaticFileUtils.putFileOutputStream(testFile, foundFile, 1024 * 1024)) { - //主线程运行 - TestOtherActivity.this.runOnUiThread(new Runnable() { - @Override - public void run() { - button.setText("File文件删除\n写入和删除路径:" + foundFile.getAbsolutePath()); - button.setEnabled(true); - mTestFile = 1; - } - }); - } - //写出失败 - else { - //主线程运行 - TestOtherActivity.this.runOnUiThread(new Runnable() { - @Override - public void run() { - button.setText("File文件写入\n写入和删除路径:" + foundFile.getAbsolutePath()); - button.setEnabled(true); - } - }); - } - } catch (IOException e) { - e.printStackTrace(); - } - } - }).start(); - } - //删除 - else { - button.setText("File文件正在删除..."); - button.setEnabled(false); - new Thread(new Runnable() { - @Override - public void run() { - /** - * 创建一个目录路径,并且返回目录路径 - *

- * 没有创建,有直接返回。 - *

- * 已经判断是否有SD卡。如果有就拼接SD卡路径,没有就拼接手机内存路径 - *

- * - */ - final String foundString = StaticFileUtils.foundFilePathString(TestOtherActivity.this, "test"); - /** - * 根据路径删除指定的目录或文件,无论存在与否 - * - *

- * 删除成功返回 true,否则返回 false。 - *

- */ - if (StaticFileUtils.deleteFolder(foundString)) { - //主线程运行 - TestOtherActivity.this.runOnUiThread(new Runnable() { - @Override - public void run() { - button.setText("File文件写入\n写入和删除路径:" + foundString); - button.setEnabled(true); - mTestFile = 0; - } - }); - } - //删除失败 - else { - //主线程运行 - TestOtherActivity.this.runOnUiThread(new Runnable() { - @Override - public void run() { - button.setText("File文件删除\n写入和删除路径:" + foundString); - button.setEnabled(true); - } - }); - } - } - }).start(); - } - } - }); - - //日期获取和计算 - findViewById(R.id.test_other_button6).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - Button button = (Button) v; - /** - * 获取当前指定格式的日期 - *

- * TimeUtil对象提供大量日期操作方法和时间值算法。 - *

- */ - String dayss = TimeUtil.getDayss("yyyy-MM-dd HH:mm:ss"); - - button.setText("时间值获取:" + dayss); - } - }); - - //界面跳转Intent操作 - findViewById(R.id.test_other_button7).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - /** - * 开始一个新的activity - *

- * ActivityUtil对象提供大量的Activity跳转方法 - *

- */ - ActivityUtil.getActivityUtil().startActivity(TestOtherActivity.this, TestOtherActivity.class); - } - }); - - //字符串验证和数值转换操作 - findViewById(R.id.test_other_button8).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - /** - *

- * Validation对象不止提供大量的联系方式验证方法,还提供了一些类型值转换方法 - *

- */ - - - /** - * double类型转换int类型 (去小数点准确转换) - *

- * 样例:要转换的值:1.0。转换之后的值:10 - *

- */ - int doubleToInt = Validation.doubleToInt(12.123); - /** - * 手机验证 - * - */ - boolean matchMobile = Validation.matchMobile("19999999999"); - Toast.makeText(TestOtherActivity.this, "double类型12.123转换值:" + doubleToInt + "\n19999999999手机号码验证结果:" + matchMobile, Toast.LENGTH_SHORT).show(); - } - }); - - //手机震动 - findViewById(R.id.test_other_button9).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - /** - * 开始震动 - */ - VibratorUtil.vibrate(TestOtherActivity.this, 1000 * 3); - } - }); - - //系统资源操作 - findViewById(R.id.test_other_button10).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - /** - *

- * StaticUtility对象不止提供大量的系统操作方法,还提供了一些资源类型获取方法 - *

- */ - - /** - * 获取本地APP版本号 - * - */ - String versionString = StaticUtility.getVersionString(TestOtherActivity.this); - /** - * 获取手机品牌 - */ - String phoneBrand = StaticUtility.getPhoneBrand(); - /** - * 获取手机型号 - * - */ - String phoneModel = StaticUtility.getPhoneModel(); - Toast.makeText(TestOtherActivity.this, "手机品牌:" + phoneBrand + "<>手机型号:" + phoneModel + "<>项目版本号:" + versionString, Toast.LENGTH_SHORT).show(); - } - }); - - //网络检测 - findViewById(R.id.test_other_button11).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - /** - *

- * NetWorkUtil对象提供了网络检测方法 - *

- */ - - /** - * 网络检测 - */ - if (NetWorkUtil.isNetworkConnectionsOK(TestOtherActivity.this)) { - Toast.makeText(TestOtherActivity.this, "网络可用", Toast.LENGTH_SHORT).show(); - } else { - Toast.makeText(TestOtherActivity.this, "网络不可用", Toast.LENGTH_SHORT).show(); - } - } - }); - - //wifi操作 - findViewById(R.id.test_other_button12).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - Button button = (Button) v; - /** - *

- * WifiController对象提供了一系列对wifi操作的方法 - *

- */ - - /** - * wifi操作 - */ - switch (mWifiType) { - //开启 - case 0: - /** - * 打开wifi. - */ - WifiController.getWifiController(TestOtherActivity.this).openWifi(); - button.setText("wifi关闭"); - mWifiType = 1; - break; - //关闭 - case 1: - /** - * 关闭wifi. - */ - WifiController.getWifiController(TestOtherActivity.this).closeWifi(); - button.setText("wifi开启"); - mWifiType = 0; - break; - } - } - }); - - //单位换算操作 - findViewById(R.id.test_other_button13).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - Button button = (Button) v; - /** - *

- * FDUnitUtil对象提供一系列单位转换操作的方法 - *

- */ - - - /** - * 根据手机的分辨率从 dp 的单位 转成为 px(像素) - */ - int toPx = FDUnitUtil.dpToPx(TestOtherActivity.this, 5); - button.setText("单位换算:5dp换算值px值为" + toPx); - } - }); - - //zip压缩和解压文件 - findViewById(R.id.test_other_button14).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - final Button button = (Button) v; - //把资源zip文件写入本地-->(此处写入只是为了方便zip解压和压缩) - if (mZipType == 0) { - button.setText("zip压缩文件写入中..."); - button.setEnabled(false); - new Thread(new Runnable() { - @Override - public void run() { - try { - InputStream testFile = getAssets().open("testZip.zip"); - /** - * 根据传过去的文件目录路径和文件名来创建路径,并且返回路径File对象。 - *

- * 没有创建,有直接返回。 - *

- * 已经判断是否有SD卡。如果有就拼接SD卡路径,没有就拼接手机内存路径 - *

- */ - final File foundFile = StaticFileUtils.nonentityFoundFile(TestOtherActivity.this, "testZip", "testZip.zip"); - - /** - * 文件写出。写出成功为true,写出失败为false - */ - if (StaticFileUtils.putFileOutputStream(testFile, foundFile, 1024 * 1024)) { - //主线程运行 - TestOtherActivity.this.runOnUiThread(new Runnable() { - @Override - public void run() { - button.setText("zip压缩文件解压\n先写入、再解压、再压缩测试用例\nzip查看路径:" + foundFile.getAbsolutePath()); - button.setEnabled(true); - mZipType = 1; - } - }); - } - //写出失败 - else { - //主线程运行 - TestOtherActivity.this.runOnUiThread(new Runnable() { - @Override - public void run() { - button.setText("zip压缩文件写入\n先写入、再解压、再压缩测试用例"); - button.setEnabled(true); - } - }); - } - } catch (IOException e) { - e.printStackTrace(); - } - } - }).start(); - } - - - /** - *

- *ZipUtils对象提供一系列对文件zip压缩和解压操作方法 - *

- */ - - /** - *zip解压--->(重点) - */ - else if (mZipType == 1) { - button.setText("zip压缩文件解压中..."); - button.setEnabled(false); - new Thread(new Runnable() { - @Override - public void run() { - final String foundString = StaticFileUtils.foundFilePathString(TestOtherActivity.this, "testZip/testZip.zip"); - - /** - * 解压一个zip文件,解压文件缓存指定大小 1M - * - */ - ZipUtils.unZipFile(TestOtherActivity.this, foundString, "testZip/extract"); - //主线程运行 - TestOtherActivity.this.runOnUiThread(new Runnable() { - @Override - public void run() { - button.setText("zip压缩文件压缩\n先写入、再解压、再压缩测试用例\nzip查看路径:" + foundString); - button.setEnabled(true); - mZipType = 2; - } - }); - } - }).start(); - } - - /** - * zip压缩--->(重点) - */ - else { - button.setText("zip压缩文件压缩中..."); - button.setEnabled(false); - new Thread(new Runnable() { - @Override - public void run() { - final String foundString = StaticFileUtils.foundFilePathString(TestOtherActivity.this, "testZip/extract"); - - /** - * 无注释压缩文件(夹)。默认缓冲大小1M - * - */ - ZipUtils.zipFiles(TestOtherActivity.this, foundString, "testZip", "testZip_02"); - //主线程运行 - TestOtherActivity.this.runOnUiThread(new Runnable() { - @Override - public void run() { - button.setText("zip压缩文件演示完毕\nzip查看路径:" + foundString); - } - }); - } - }).start(); - } - } - }); - - /** - * XML解析 - */ - final TextView testOtherTextview01 = (TextView) findViewById(R.id.test_other_textview01); - findViewById(R.id.test_other_button15).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - String xml = "\n" + - "\n" + - " \n" + - "测试类型1\n" + - "测试类型1>1 \n" + - "\n" + - " \n" + - "测试类型2\n" + - "测试类型1>2\n" + - "\n" + - ""; - Logger.e("XML格式", xml); - List> list = XmlUtils.xmlPullObjList(xml, new String[]{"t", "v"}, new String[]{"data1", "data2"}); - for (int i = 0; i < list.size(); i++) { - Map map = list.get(i); - String t = map.get("t"); - String v1 = map.get("v"); - String trim = testOtherTextview01.getText().toString(); - testOtherTextview01.setText(trim + "第" + (i + 1) + "节目录解析数据:t=" + t + "___v=" + v1 + "\n"); - } - } - }); - - //图片加载操作 - final ImageView imageView = (ImageView) findViewById(R.id.image_view); - findViewById(R.id.test_other_button16).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - ImageLoaderUtils.displayImage("http://122.224.4.84:8113/Images/4f5815ff02b8752db500000b/201510080932292559.jpg", - imageView, - R.mipmap.ic_launcher, - R.mipmap.ic_launcher, - true, - 30); - } - }); - //数据库操作演示 - findViewById(R.id.test_other_button18).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - ActivityUtil.getActivityUtil().startActivity(TestOtherActivity.this, TestDataBaseOperateActivity.class); - } - }); - } - - private BaseSharePreference getBaseSharePreference() { - return BaseSharePreference.initBaseSharePreference(this, "test_my"); - } -} diff --git a/demo/src/main/java/com/liqi/myutils/demo/db/DBManagerOperation.java b/demo/src/main/java/com/liqi/myutils/demo/db/DBManagerOperation.java deleted file mode 100644 index 64205cb..0000000 --- a/demo/src/main/java/com/liqi/myutils/demo/db/DBManagerOperation.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.liqi.myutils.demo.db; - -import android.content.Context; - -import com.liqi.utils.db.BaseDBManagerOperation; - -/** - * 数据库信息表业务操作对象 - */ -public class DBManagerOperation { - public static BaseDBManagerOperation BaseDBManagerOperation(Context context) { - return BaseDBManagerOperation.getBaseDBManagerOperation(new DatabaseTableHelper(context.getApplicationContext())); - } -} diff --git a/demo/src/main/java/com/liqi/myutils/demo/db/DatabaseTableHelper.java b/demo/src/main/java/com/liqi/myutils/demo/db/DatabaseTableHelper.java deleted file mode 100644 index 296ff9b..0000000 --- a/demo/src/main/java/com/liqi/myutils/demo/db/DatabaseTableHelper.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.liqi.myutils.demo.db; - - -import android.content.Context; -import android.database.sqlite.SQLiteDatabase; -import android.database.sqlite.SQLiteOpenHelper; - -/** - * 创建数据库表对象 - * - * @author Liqi - */ -public class DatabaseTableHelper extends SQLiteOpenHelper implements OnDatabaseTableHelperListener{ - - public DatabaseTableHelper(Context context) { - - // 调用父类构造方法创建数据库 - super(context, TABLE_DB, null, TEST_VERSION); - } - - @Override - public void onCreate(SQLiteDatabase db) { - // 营销订单 - db.execSQL("CREATE TABLE " + TEST_NAME + " (id integer primary key , "+TEST_CONTENT_ONE+" text, "+TEST_CONTENT_TWO+" text, "+TEST_CONTENT_THREE+" text, "+TEST_CONTENT_FOUR+" text)"); - - } - - @Override - public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { - // 判断数据库是否存在,存在就删掉然后重新创建表 - db.execSQL("DROP TABLE IF EXISTS " + TEST_NAME); - onCreate(db); - } - -} \ No newline at end of file diff --git a/demo/src/main/java/com/liqi/myutils/demo/db/OnDatabaseTableHelperListener.java b/demo/src/main/java/com/liqi/myutils/demo/db/OnDatabaseTableHelperListener.java deleted file mode 100644 index ea90ad7..0000000 --- a/demo/src/main/java/com/liqi/myutils/demo/db/OnDatabaseTableHelperListener.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.liqi.myutils.demo.db; - -/** 数据库表名和表字段接口 - * Created by LiQi on 2017/12/6. - */ - -public interface OnDatabaseTableHelperListener { - String TABLE_DB="TEST_TABLE_DB"; - int TEST_VERSION=1; - String TEST_NAME="TEST_NAME", - TEST_CONTENT_ONE="TEST_CONTENT_ONE" - ,TEST_CONTENT_TWO="TEST_CONTENT_TWO", - TEST_CONTENT_THREE="TEST_CONTENT_THREE", - TEST_CONTENT_FOUR="TEST_CONTENT_FOUR"; - -} diff --git a/demo/src/main/java/com/liqi/myutils/demo/db/TestDataBaseOperateActivity.java b/demo/src/main/java/com/liqi/myutils/demo/db/TestDataBaseOperateActivity.java deleted file mode 100644 index fc44649..0000000 --- a/demo/src/main/java/com/liqi/myutils/demo/db/TestDataBaseOperateActivity.java +++ /dev/null @@ -1,156 +0,0 @@ -package com.liqi.myutils.demo.db; - -import android.content.Context; -import android.os.Bundle; -import android.support.annotation.Nullable; -import android.support.v7.app.AppCompatActivity; -import android.view.View; -import android.widget.Button; -import android.widget.EditText; -import android.widget.TextView; - -import com.liqi.myutils.demo.R; - -import java.util.ArrayList; -import java.util.Map; - -/** - * 数据库操作演示界面 - *

- * MVP模式 - *

- * Created by LiQi on 2017/12/6. - */ - -public class TestDataBaseOperateActivity extends AppCompatActivity implements View.OnClickListener,TestDataBaseOperateP.OnTestDataBaseOperateListener>>{ - private TextView content; - private EditText add_key_one, add_key_two, add_key_three, add_key_four, - query_key_one, query_key_two, query_key_three, query_key_four, - update_key_one, update_key_two, update_key_three, update_key_four, - delete_key_one, delete_key_two, delete_key_three, delete_key_four; - private int queryCode; - - private Button query_key_query; - private TestDataBaseOperateP>> mPresenter; - @Override - protected void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.test_data_base_operate_layout); - content = (TextView) findViewById(R.id.content); - add_key_one = (EditText) findViewById(R.id.add_key_one); - add_key_two = (EditText) findViewById(R.id.add_key_two); - add_key_three = (EditText) findViewById(R.id.add_key_three); - add_key_four = (EditText) findViewById(R.id.add_key_four); - query_key_one = (EditText) findViewById(R.id.query_key_one); - query_key_two = (EditText) findViewById(R.id.query_key_two); - query_key_three = (EditText) findViewById(R.id.query_key_three); - query_key_four = (EditText) findViewById(R.id.query_key_four); - update_key_one = (EditText) findViewById(R.id.update_key_one); - update_key_two = (EditText) findViewById(R.id.update_key_two); - update_key_three = (EditText) findViewById(R.id.update_key_three); - update_key_four = (EditText) findViewById(R.id.update_key_four); - delete_key_one = (EditText) findViewById(R.id.delete_key_one); - delete_key_two = (EditText) findViewById(R.id.delete_key_two); - delete_key_three = (EditText) findViewById(R.id.delete_key_three); - delete_key_four = (EditText) findViewById(R.id.delete_key_four); - findViewById(R.id.add_key_add).setOnClickListener(this); - query_key_query = (Button) findViewById(R.id.query_key_query); - query_key_query.setOnClickListener(this); - findViewById(R.id.update_key_update).setOnClickListener(this); - findViewById(R.id.delete_key_delete).setOnClickListener(this); - mPresenter=new TestDataBaseOperateP<>(this); - } - - @Override - public void presenterDataOk(ArrayList> presenterData) { - String hint = "数据库操作执行失败"; - if (null != presenterData && !presenterData.isEmpty()) { - hint = ""; - for (Map map : presenterData) { - if (!map.isEmpty()) { - for (Map.Entry entry : map.entrySet()) { - hint += "key:" + entry.getKey() + " values:" + entry.getValue() + "\n"; - } - } - } - } - content.setText("操作数据库提示信息:\n" + hint); - } - - @Override - public void presenterDataNo(int tag) { - - } - - @Override - public Context getContext() { - return this; - } - - @Override - public void onClick(View v) { - switch (v.getId()) { - //增加 - case R.id.add_key_add: - String one = add_key_one.getText().toString().trim(); - String two = add_key_two.getText().toString().trim(); - String three = add_key_three.getText().toString().trim(); - String four = add_key_four.getText().toString().trim(); - mPresenter.write(one, two, three, four); - break; - //查询-轮流调用数据库查询工具方法 - case R.id.query_key_query: - - String queryOne = query_key_one.getText().toString().trim(); - String queryTwo = query_key_two.getText().toString().trim(); - String queryThree = query_key_three.getText().toString().trim(); - String queryFour = query_key_four.getText().toString().trim(); - queryCode++; - switch (queryCode) { - case 1: - mPresenter.allPrecisionFindByIdList(queryOne, queryTwo, queryThree, queryFour); - break; - case 2: - mPresenter.orPrecisionFindByIdList(queryOne, queryTwo, queryThree, queryFour); - break; - case 3: - mPresenter.allFuzzyFindByIdList(queryOne, queryTwo, queryThree, queryFour); - break; - case 4: - mPresenter.andFuzzyFindByIdList(queryOne, queryTwo, queryThree, queryFour); - break; - case 5: - mPresenter.allPrecisionFindByIdMap(queryOne, queryTwo, queryThree, queryFour); - break; - case 6: - mPresenter.orPrecisionFindByIdMap(queryOne, queryTwo, queryThree, queryFour); - break; - case 7: - mPresenter.allFuzzyFindByIdMap(queryOne, queryTwo, queryThree, queryFour); - break; - case 8: - mPresenter.andFuzzyFindByIdMap(queryOne, queryTwo, queryThree, queryFour); - queryCode = 0; - break; - } - query_key_query.setText("查询数据库>>" + (queryCode + 1)); - break; - //更新 - case R.id.update_key_update: - String updateOne = update_key_one.getText().toString().trim(); - String updateTwo = update_key_two.getText().toString().trim(); - String updateThree = update_key_three.getText().toString().trim(); - String updateFour = update_key_four.getText().toString().trim(); - mPresenter.update(updateOne, updateTwo, updateThree, updateFour); - break; - //删除 - case R.id.delete_key_delete: - String deleteOne = delete_key_one.getText().toString().trim(); - String deleteTwo = delete_key_two.getText().toString().trim(); - String deleteThree = delete_key_three.getText().toString().trim(); - String deleteFour = delete_key_four.getText().toString().trim(); - mPresenter.delete(deleteOne, deleteTwo, deleteThree, deleteFour); - break; - } - } -} diff --git a/demo/src/main/java/com/liqi/myutils/demo/db/TestDataBaseOperateP.java b/demo/src/main/java/com/liqi/myutils/demo/db/TestDataBaseOperateP.java deleted file mode 100644 index 1b56f73..0000000 --- a/demo/src/main/java/com/liqi/myutils/demo/db/TestDataBaseOperateP.java +++ /dev/null @@ -1,205 +0,0 @@ -package com.liqi.myutils.demo.db; - -import android.content.ContentValues; -import android.content.Context; -import android.text.TextUtils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Map; - -/** - * 数据库操作演示界面辅助对象 - * Created by LiQi on 2017/12/6. - */ - -public class TestDataBaseOperateP>> implements OnDatabaseTableHelperListener { - private OnTestDataBaseOperateListener mBaseOperateListener; - - public TestDataBaseOperateP(OnTestDataBaseOperateListener baseOperateListener) { - mBaseOperateListener = baseOperateListener; - } - - /** - * 增加-->详细请看save()注释 - */ - public void write(String contentOne, String contentTwo, String contentThree, String contentFour) { - ContentValues values = new ContentValues(); - values.put(TEST_CONTENT_ONE, contentOne); - values.put(TEST_CONTENT_TWO, contentTwo); - values.put(TEST_CONTENT_THREE, contentThree); - values.put(TEST_CONTENT_FOUR, contentFour); - - long saveCode = DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).save(TEST_NAME, values); - ArrayList> listValues = new ArrayList<>(); - Map map = new HashMap<>(); - map.put("isOkCode", saveCode != 0 ? "数据库增加成功" : "数据库增加失败"); - listValues.add(map); - mBaseOperateListener.presenterDataOk((V) listValues); - } - - /** - * 查询-->详细请看allPrecisionFindByIdList()注释 - */ - public void allPrecisionFindByIdList(String contentOne, String contentTwo, String contentThree, String contentFour) { - ArrayList strings = new ArrayList<>(); - strings.add(TEST_CONTENT_ONE); - strings.add(TEST_CONTENT_TWO); - strings.add(TEST_CONTENT_THREE); - strings.add(TEST_CONTENT_FOUR); - mBaseOperateListener.presenterDataOk((V) DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).allPrecisionFindByIdList(TEST_NAME, queryMap(contentOne, contentTwo, contentThree, contentFour), strings)); - - } - - /** - * 查询-->详细请看orPrecisionFindByIdList()注释 - */ - public void orPrecisionFindByIdList(String contentOne, String contentTwo, String contentThree, String contentFour) { - ArrayList strings = new ArrayList<>(); - strings.add(TEST_CONTENT_ONE); - strings.add(TEST_CONTENT_TWO); - strings.add(TEST_CONTENT_THREE); - strings.add(TEST_CONTENT_FOUR); - mBaseOperateListener.presenterDataOk((V) DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).orPrecisionFindByIdList(TEST_NAME, queryMap(contentOne, contentTwo, contentThree, contentFour), strings)); - - } - - /** - * 查询-->详细请看allFuzzyFindByIdList()注释 - */ - public void allFuzzyFindByIdList(String contentOne, String contentTwo, String contentThree, String contentFour) { - ArrayList strings = new ArrayList<>(); - strings.add(TEST_CONTENT_ONE); - strings.add(TEST_CONTENT_TWO); - strings.add(TEST_CONTENT_THREE); - strings.add(TEST_CONTENT_FOUR); - mBaseOperateListener.presenterDataOk((V) DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).allFuzzyFindByIdList(TEST_NAME, queryMap(contentOne, contentTwo, contentThree, contentFour), strings)); - - } - - /** - * 查询-->详细请看andFuzzyFindByIdList()注释 - */ - public void andFuzzyFindByIdList(String contentOne, String contentTwo, String contentThree, String contentFour) { - ArrayList strings = new ArrayList<>(); - strings.add(TEST_CONTENT_ONE); - strings.add(TEST_CONTENT_TWO); - strings.add(TEST_CONTENT_THREE); - strings.add(TEST_CONTENT_FOUR); - mBaseOperateListener.presenterDataOk((V) DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).andFuzzyFindByIdList(TEST_NAME, queryMap(contentOne, contentTwo, contentThree, contentFour), strings)); - - } - - /** - * 查询-->详细请看allPrecisionFindByIdMapt()注释 - */ - public void allPrecisionFindByIdMap(String contentOne, String contentTwo, String contentThree, String contentFour) { - ArrayList strings = new ArrayList<>(); - strings.add(TEST_CONTENT_ONE); - strings.add(TEST_CONTENT_TWO); - strings.add(TEST_CONTENT_THREE); - strings.add(TEST_CONTENT_FOUR); - ArrayList> listValues = new ArrayList<>(); - listValues.add(DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).allPrecisionFindByIdMap(TEST_NAME, queryMap(contentOne, contentTwo, contentThree, contentFour), strings)); - mBaseOperateListener.presenterDataOk((V) listValues); - } - - /** - * 查询-->详细请看orPrecisionFindByIdMap()注释 - */ - public void orPrecisionFindByIdMap(String contentOne, String contentTwo, String contentThree, String contentFour) { - ArrayList strings = new ArrayList<>(); - strings.add(TEST_CONTENT_ONE); - strings.add(TEST_CONTENT_TWO); - strings.add(TEST_CONTENT_THREE); - strings.add(TEST_CONTENT_FOUR); - ArrayList> listValues = new ArrayList<>(); - listValues.add(DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).orPrecisionFindByIdMap(TEST_NAME, queryMap(contentOne, contentTwo, contentThree, contentFour), strings)); - mBaseOperateListener.presenterDataOk((V) listValues); - } - - /** - * 查询-->详细请看allFuzzyFindByIdMap()注释 - */ - public void allFuzzyFindByIdMap(String contentOne, String contentTwo, String contentThree, String contentFour) { - ArrayList strings = new ArrayList<>(); - strings.add(TEST_CONTENT_ONE); - strings.add(TEST_CONTENT_TWO); - strings.add(TEST_CONTENT_THREE); - strings.add(TEST_CONTENT_FOUR); - ArrayList> listValues = new ArrayList<>(); - listValues.add(DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).allFuzzyFindByIdMap(TEST_NAME, queryMap(contentOne, contentTwo, contentThree, contentFour), strings)); - mBaseOperateListener.presenterDataOk((V) listValues); - } - - /** - * 查询-->详细请看andFuzzyFindByIdMap()注释 - */ - public void andFuzzyFindByIdMap(String contentOne, String contentTwo, String contentThree, String contentFour) { - ArrayList strings = new ArrayList<>(); - strings.add(TEST_CONTENT_ONE); - strings.add(TEST_CONTENT_TWO); - strings.add(TEST_CONTENT_THREE); - strings.add(TEST_CONTENT_FOUR); - ArrayList> listValues = new ArrayList<>(); - listValues.add(DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).andFuzzyFindByIdMap(TEST_NAME, queryMap(contentOne, contentTwo, contentThree, contentFour), strings)); - mBaseOperateListener.presenterDataOk((V) listValues); - } - - /** - * 更新--> 详细请看updateAnd()-updateOr()注释 - */ - public void update(String contentOne, String contentTwo, String contentThree, String contentFour) { - Map stringMap = new HashMap<>(); - if (!TextUtils.isEmpty(contentOne)) - stringMap.put(TEST_CONTENT_ONE, contentOne); - if (!TextUtils.isEmpty(contentTwo)) - stringMap.put(TEST_CONTENT_THREE, contentThree); - - ContentValues values = new ContentValues(); - values.put(TEST_CONTENT_ONE, contentOne); - values.put(TEST_CONTENT_TWO, contentTwo); - values.put(TEST_CONTENT_THREE, contentThree); - values.put(TEST_CONTENT_FOUR, contentFour); - - int update = DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).updateAnd(TEST_NAME, stringMap, values); - ArrayList> listValues = new ArrayList<>(); - Map map = new HashMap<>(); - map.put("isOkCode", update > 0 ? "数据库更新成功" : "数据库更新失败"); - listValues.add(map); - mBaseOperateListener.presenterDataOk((V) listValues); - } - - /** - * 删除-->详细请看deleteAnd()和deleteOr()注释 - */ - public void delete(String contentOne, String contentTwo, String contentThree, String contentFour) { - int deleteCode = DBManagerOperation.BaseDBManagerOperation(mBaseOperateListener.getContext()).deleteAnd(TEST_NAME, queryMap(contentOne, contentTwo, contentThree, contentFour)); - ArrayList> listValues = new ArrayList<>(); - Map map = new HashMap<>(); - map.put("isOkCode", deleteCode != 0 ? "数据库删除成功" : "数据库删除失败"); - listValues.add(map); - mBaseOperateListener.presenterDataOk((V) listValues); - } - - private Map queryMap(String contentOne, String contentTwo, String contentThree, String contentFour) { - Map stringMap = new HashMap<>(); - if (!TextUtils.isEmpty(contentOne)) - stringMap.put(TEST_CONTENT_ONE, contentOne); - if (!TextUtils.isEmpty(contentTwo)) - stringMap.put(TEST_CONTENT_TWO, contentTwo); - if (!TextUtils.isEmpty(contentThree)) - stringMap.put(TEST_CONTENT_THREE, contentThree); - if (!TextUtils.isEmpty(contentFour)) - stringMap.put(TEST_CONTENT_FOUR, contentFour); - return stringMap; - } - - public interface OnTestDataBaseOperateListener { - void presenterDataOk(V v); - - Context getContext(); - - void presenterDataNo(int tag); - } -} diff --git a/demo/src/main/res/layout/test_data_base_operate_layout.xml b/demo/src/main/res/layout/test_data_base_operate_layout.xml deleted file mode 100644 index 9bb9b7b..0000000 --- a/demo/src/main/res/layout/test_data_base_operate_layout.xml +++ /dev/null @@ -1,367 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -