![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
文章平均质量分 85
Missmiss小王纸
这个作者很懒,什么都没留下…
展开
-
Lambda表达式
Lambda表达式是JAVA8的新特性匿名类new Thread( () -> System.out.print(“”));listA.forEach( (a) -> System.out.print(a));Predicate过滤 public static void main(args[]){ List languages = Arrays.asList("Java", "Scala",原创 2017-08-02 21:07:55 · 210 阅读 · 0 评论 -
View绘制流程总结
参考 enter link description heremeasure流程 父View的measure的过程会先测量子View,等子View测量结果出来后,再来测量自己,measureChildWithMargins就是用来测量某个子View的 measure()不可以被复写,但onMeasure()可以,像TextView、ImageView这些系统自带的控件都有重写,如TextView会按内原创 2017-11-23 18:51:30 · 183 阅读 · 0 评论 -
RecyclerView缓存机制总结
参考 enter link description here入口Scroll、onLayout -> RecyclerView.dispatchLayoutStep2() -> RecyclerView.onLayoutChildren() -> ItemView:LayoutManager.fill() -> LayoutManager.layoutChunk() -> LayoutState.n原创 2017-11-23 18:51:54 · 2838 阅读 · 0 评论 -
Kotlin
优点对比 Linux (Android基于Linux)上的其他进程通信方式(管道/消息队列/共享内存/信号量/Socket),Binder 机制的优点有:高效Binder数据拷贝只需要一次,而管道、消息队列、Socket都需要2次 通过驱动在内核空间拷贝数据,不需要额外的同步处理安全性高Binder 机制为每个进程分配了 UID/PID 来作为鉴别身份的标示,并且在 Binder 通信时会根据 U原创 2017-11-23 18:53:14 · 148 阅读 · 0 评论 -
Material Design
###依赖compile 'com.android.support:appcompat-v7:24.1.1'testCompile 'junit:junit:4.12'compile 'com.android.support:recyclerview-v7:23.4.0'compile 'com.android.support:design:24.1.1'compile 'com.android....原创 2016-12-06 15:16:00 · 229 阅读 · 0 评论