学习笔记
文章平均质量分 61
forward_daydayup
这个作者很懒,什么都没留下…
展开
-
一键锁屏双击锁屏
锁屏方法一: 利用DevicePolicyManager执行屏幕锁定参考:https://blog.csdn.net/demonjsj/article/details/77372900https://blog.csdn.net/black_bird_cn/article/details/79735794https://blog.csdn.net/fengltxx/article/details/52334428总结:通过DevicePolicyManager实现息屏代码流程:获的Devic原创 2022-03-01 17:12:42 · 2017 阅读 · 0 评论 -
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapterRecyclerView 原生问题Cause:RecyclerView.dispatchLayout() can try to pull items from the scrap before calling mRecycler.clearOldPositions(). The consequence being is that原创 2022-02-23 16:07:22 · 1584 阅读 · 0 评论 -
InputDispatcher: Untrusted touch due to occlusion by
分析问题: InputDispatcher: Untrusted touch due to occlusion by packageName/uidInputDispatcher judge the touch untrusted.找出日志中window信息,例如{noformat}Window #11 Window{…}:mDisplayId=0 rootTaskId=1 mSession=Session{285ecd8 4481:u0a10231} mClient=android.os.Bin原创 2022-02-15 16:32:50 · 1591 阅读 · 0 评论 -
Collections.sort报错
Collections.sort报错java.lang.IllegalArgumentException: Comparison method violates its general contract!at java.util.TimSort.mergeLo(TimSort.java:777)at java.util.TimSort.mergeAt(TimSort.java:514)at java.util.TimSort.mergeForceCollapse(TimSort.java:457)原创 2022-02-09 17:45:39 · 1532 阅读 · 1 评论 -
学习笔记:当前主流架构 MVC+MVP+MVVM
MVC+MVP+MVVMMVC全名Model View Controller模型(model) - 视图 (view) - 控制器( controller)M是指业务模型,V是指用户界面,C则是控制器其中View层其实就是用户的UI界面,用于向用户展示数据一级接受用户的输入;Model层就是JavaBean实体类,用于保存实例数据;Controller控制器用于更新UI界面和数据实例。...原创 2019-02-18 21:59:09 · 676 阅读 · 0 评论