# EnergyUtils **Repository Path**: cjf_90/EnergyUtils ## Basic Information - **Project Name**: EnergyUtils - **Description**: Initial commit - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-07-24 - **Last Updated**: 2024-05-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EnergyUtils #### 介绍 这是一个Android封装的工具类,可以是使用者更简单的进行判断。 #### 软件架构 软件架构说明 * ##### AnimCompat 相关 -> [AnimCompat.java] ```kotlin var anim:Animation = AnimCompat.loadAnimation(context,R.anim.window_bottom_in) var animator:Animator = AnimCompat.loadAnimator(context,R.anim.window_bottom_in) ``` * ##### SingletonManager 相关 -> [SingletonManager.java] ```kotlin class TaskSingleManager : ISingletonWrapper { companion object { /** * 单例 * @return 当前对象 */ @JvmStatic fun getInstance(): TaskSingleManager { return SingletonManager.get().getInstance( TaskSingleManager::class.java ) { TaskSingleManager() } } /** * 单例 随时可能被清理 * @return 当前对象 */ @JvmStatic fun getInstance(): TaskSingleManager { return SingletonWeakManager.get().getInstance( TaskSingleManager::class.java ) { TaskSingleManager() } } } } ``` #### 安装教程 直接使用Gradle引用即可 #### 添加依赖 ```groovy implementation 'com.gitee.cjf_90:EnergyUtils:0.0.5' implementation 'com.gitee.cjf_90:EnergyCore:0.0.5' implementation 'com.gitee.cjf_90:EnergyJava:0.1.1' ``` #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)