- 博客(4)
- 收藏
- 关注
原创 TextWatcher源码分析
TextWatcher源码分析package android.text;/** * When an object of a type is attached to an Editable, its methods will * be called when the text is changed. * * 从设计角度分析三个回调方法的区别: * beforeTextChanged() * onTextChanged() * afterTextChanged() * 1.前两个方法主要作
2020-10-31 23:01:34
205
原创 SparseArray源码注释
本文基于Android SDK 6.0源码进行分析,适合于希望自己通篇阅读源码的读者。代码中增加了中文注释,是我自己阅读源码时总结的一些东西,希望能够帮助读者更快的理解代码中的某些细节。我自己的源码学习项目:https://github.com/kishimotoindb/analysis-for-source-code-of-Android/** * SparseArrays map integers to Objects. Unlike a normal array of Objects, *
2020-07-18 18:31:58
160
原创 ArrayMap源码注释
ArrayMap源码详解本文的分析基于Android SDK 6.0源码进行,通过对ArrapMap的源码的分析,了解它的使用和特点。代码中保留了原有的英文注释,并增加了自己学习过程中添加的中文注释。package android.util;import libcore.util.EmptyArray;import java.util.Collection;import java.util.Map;import java.util.Set;/** * ArrayMap is a gen
2020-07-18 18:23:30
281
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅