
开发笔记
文章平均质量分 57
那时候
这个作者很懒,什么都没留下…
展开
-
LiveData常见问题
LiveData。原创 2022-08-15 19:47:07 · 1340 阅读 · 1 评论 -
Android开发常用库
下载框架RxDownloadhttps://github.com/ssseasonnn/RxDownloadimplementation "com.github.ssseasonnn:RxDownload:1.1.4"视频播放TextureVideoViewimplementation 'com.sprylab.android.texturevideoview:texturevideoview:1.2.1'滴滴debugdebugImplementation 'io.github.d..原创 2022-02-17 13:14:37 · 1043 阅读 · 0 评论 -
软键盘弹出时EditText上移
参考文章:https://blog.youkuaiyun.com/weixin_39678304/article/details/117649662Manifest中设置属性android:windowSoftInputMode="adjustResize" //多个属性用|分开windowSoftInputMode的各值的含义:stateUnspecified:软键盘的状态并没有指定,系统将选择一个合适的状态或依赖于主题的设置stateUnchanged:当这个activity出现时,软键盘原创 2022-02-10 17:06:17 · 1316 阅读 · 0 评论 -
Camera2的简单使用
一. 布局AutoFitTextureViewpublic class AutoFitTextureView extends TextureView { private int mRatioWidth = 0; private int mRatioHeight = 0; public AutoFitTextureView(Context context) { this(context, null); } public AutoFitTextu原创 2020-11-08 11:20:14 · 1375 阅读 · 0 评论 -
相册(1) ---- 获取所有照片并按照时间分组
效果图一. 使用的第三方依赖及知识点1. recyclerView适配器 BaseRecyclerViewAdapterHelper使用(1) 继承 BaseMultiItemQuickAdapter因为集合中有两个种集合对象, 而这两种集合对象都实现了MultiItemEntity接口, 所以此处实体写为MultiItemEntity(2) 在构造方法中添加两种布局的//TYP...原创 2019-05-15 09:41:13 · 3571 阅读 · 2 评论 -
java中用实体类做key
java中使用实体类做key的时候, 必须重写equal()和hashCode()方法equal方法判断对象是否相同, 对于不需要参与判断的字段, 不要重写重写hashCode方法之后, 才可以map.get(key), 否则都为null, 对于不需要参与判断的字段, 不要重写, 例如状态等可变字段kotlin中默认重写了equal()和hashCode()方法, 所以要对字段分别判断的时候...原创 2019-06-12 16:12:26 · 1304 阅读 · 0 评论