摘要: /** * 用于获取状态栏的高度。 * * @return 返回状态栏高度的像素值。 */ private int getStatusBarHeight() { if (statusBarHeight == 0) { try { Class<?> c = Class.forName("com.and 阅读全文
posted @ 2021-02-04 15:20 zihengQuan 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 转https://www.jb51.net/article/129502.htm 阅读全文
posted @ 2021-02-04 11:22 zihengQuan 阅读(1074) 评论(0) 推荐(0) 编辑
摘要: 转https://www.cnblogs.com/masteryellow/p/9214198.html 阅读全文
posted @ 2021-02-02 13:38 zihengQuan 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 转https://www.cnblogs.com/adamjwh/p/9048594.html 阅读全文
posted @ 2021-02-02 11:09 zihengQuan 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 一个类的实例是这个类本身的实例,也是他父类,父类的父类的实例,也是实现的接口的实例 阅读全文
posted @ 2020-12-30 10:38 zihengQuan 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-30 09:41 zihengQuan 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 1、相同点: 1.都可提交preference的修改数据。 2.都是原子操作。 2、区别: 1.apply没有返回值,commit返回boolean表明修改是否提交成功。 2.apply是将修改数据原子提交到内存,而后异步真正提交到硬件磁盘;而commit是同步的提交到硬件磁盘,因此,在多个并发的提 阅读全文
posted @ 2020-12-24 14:10 zihengQuan 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-23 11:22 zihengQuan 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1、standard 2、singleTop 3、singleTask 4、singleInstance 阅读全文
posted @ 2020-12-23 11:15 zihengQuan 阅读(147) 评论(0) 推荐(0) 编辑