# lib仓库 **Repository Path**: VinRichard/UtilsLibrary ## Basic Information - **Project Name**: lib仓库 - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-24 - **Last Updated**: 2025-03-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 一.Android 7.0及以上版本,文件权限配置更新为FileProvider的方式: + #### 1. 在项目的AndroidManifest.xml添加相关配置,示例如下: ``` ``` + #### 2. 在res/xml目录(如果没有xml目录,则新建一个)下,添加文件file_provider_paths.xml,内容如下: ``` ``` external-files-path表示通过 Context.getExternalFilesDir(null) 接口获取到的目录下的文件才可被共享,其他未配置的路径均不可被分享。同样的节点可以配置多个,以支持多个不同的子目录. 如下所示: ``` ``` paths内部还支持节点配置其他的路径,比如: files-path,对应于 Context.getFilesDir() 获取到的目录 cache-path,对应于 Context.getCacheDir() 获取到的目录 还有一些其他可配置的路径,开发者可自行了解使用。 ## 二.软件可见性适配(Android 11) + #### 1. 在主工程的AndroidManifest.xml 中增加 标签. ``` // 在应用的AndroidManifest.xml添加如下标签 // 指定微信包名 ``` + 备注:以上一和二的出处地址:

https://open.weixin.qq.com/cgi-bin/announce?action=getannouncement&key=11600155960jI9EY&version=&lang=&token= ## 三.日志框架 + 1.https://github.com/orhanobut/logger + 2.https://github.com/elvishew/xLog ## recyclerview和recyclerview-selection的使用 + https://blog.csdn.net/yingaizhu/article/details/107565251 ## 谷歌库 + androidx.glance + androidx.hardware + androidx.health:电池 + androidx.opengl + androidx.print + androidx.leanback:TV + androidx.loader:加载数据 + androidx.media + androidx.savedstate:状态保持 + androidx.slice:界面模板 + androidx.tracing:耗时时间分析 + androidx.webkit: + androidx.window: + jetpack库 + paging:分页加载库 + work:执行后台任务 + room:数据库 + lifecycle: 解耦页面的生命周期 + compose:声明是UI