上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

2019年10月28日

设计模式:单例模式

摘要: 原文:https://www.cnblogs.com/android-blogs/p/5530239.html 优点: 对于那些比较耗内存的类,只实例化一次可以大大提高性能,尤其是在移动开发中。 保持程序运行的时候该中始终只有一个实例存在内存中 要保证单例,需要做一下几步 必须防止外部可以调用构造函 阅读全文

posted @ 2019-10-28 14:24 赵子隆 阅读(84) 评论(0) 推荐(0) 编辑

2019年10月25日

对RecyclerView的嵌套布局的理解

摘要: 如果有碰到列表前面有其他布局的需求,可以考虑以下两种实现方式: 1、使用NestedScrollView(ScrollView已被抛弃)作为外层的嵌套 但是这种方法不适合加载大量的数据,因为列表的内容不会被释放,即RecyclerView的item不会被复用,非常消耗内存 所以列表内容如果占用内存较 阅读全文

posted @ 2019-10-25 15:06 赵子隆 阅读(364) 评论(0) 推荐(0) 编辑

2019年10月24日

RecyclerView 通用适配器

摘要: 原文地址:https://www.jianshu.com/p/82a74c9ccba5 阅读全文

posted @ 2019-10-24 17:56 赵子隆 阅读(298) 评论(0) 推荐(0) 编辑

2019年10月17日

类 排序 定义比较

摘要: public class StationSongBean implements Comparable<StationSongBean>{ private int song_id; private String song_name; private String singer_name; private String user_nickname; private boolean is_support 阅读全文

posted @ 2019-10-17 15:15 赵子隆 阅读(168) 评论(0) 推荐(0) 编辑

2019年10月8日

Git 操作指令 汇总

摘要: 1、在本地建立一个git仓库:git init(将当前目录变成可管理的git仓库) 或者 git clone https://github.com/.../test.git(将远程的git仓库复制到本地) 2、添加文件到暂存区:git add XX 3、提交仓库并添加备注:git commit -m 阅读全文

posted @ 2019-10-08 14:50 赵子隆 阅读(193) 评论(0) 推荐(1) 编辑

2019年9月23日

githug windows 通关流程

摘要: https://www.zybuluo.com/lunar/note/328163#15-重构-restructure githug是一个用于熟悉git的小游戏,运行在ruby的环境下。 一、安装过程: 1、需要先安装ruby:https://rubyinstaller.org/,不过官网比较慢,可 阅读全文

posted @ 2019-09-23 17:30 赵子隆 阅读(460) 评论(0) 推荐(0) 编辑

2019年9月17日

Glide 网络加载图片的框架

摘要: 添加依赖: 使用方法: 注意: .diskCacheStrategy(DiskCacheStrategy.SOURCE)的参数如下: diskCacheStrategy(DiskCacheStrategy strategy).设置缓存策略。 DiskCacheStrategy.SOURCE:缓存原始 阅读全文

posted @ 2019-09-17 09:58 赵子隆 阅读(791) 评论(0) 推荐(0) 编辑

2019年9月7日

软键盘

摘要: 原文:https://blog.csdn.net/chenhuakang/article/details/52798207 <activity android:name=".activity.HomeActivity" Android:windowSoftInputMode="adjustPan|s 阅读全文

posted @ 2019-09-07 12:59 赵子隆 阅读(131) 评论(0) 推荐(0) 编辑

2019年8月29日

Activity 切换动画

摘要: https://www.jianshu.com/p/4c65790430ff 或者: 在第二个Activity中加上: 阅读全文

posted @ 2019-08-29 20:08 赵子隆 阅读(115) 评论(0) 推荐(0) 编辑

2019年8月26日

shape layer-list

摘要: https://blog.csdn.net/l_215851356/article/details/53912285 使用layer-list可以将多个drawable按照顺序层叠在一起显示,默认情况下,所有的item中的drawable都会自动根据它附上view的大小而进行缩放, layer-li 阅读全文

posted @ 2019-08-26 21:19 赵子隆 阅读(243) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

导航