Android应用层源码分析
珠峰之巅-程序员
这个作者很懒,什么都没留下…
展开
-
源码之ListView分析
转载请注明出处:http://blog.csdn.net/guolin_blog/article/details/44996879在Android所有常用的原生控件当中,用法最复杂的应该就是ListView了,它专门用于处理那种内容元素很多,手机屏幕无法展示出所有内容的情况。ListView可以使用列表的形式来展示内容,超出屏幕部分的内容只需要通过手指滑动就可以移动到屏幕内了。另外原创 2016-12-26 10:14:28 · 396 阅读 · 0 评论 -
AbstractListView源码分析8
/** * Maximum distance to record overscroll 记录overscroll的最大的距离 */ int mOverscrollMax; /** * Content height divided by this is the overscroll limit.内容的高度除以这个数值,为overscro原创 2016-12-27 11:00:19 · 397 阅读 · 0 评论 -
AbstractListView源码分析7
/** * One of TOUCH_MODE_REST, TOUCH_MODE_DOWN, TOUCH_MODE_TAP, TOUCH_MODE_SCROLL, or * TOUCH_MODE_DONE_WAITING */ int mTouchMode = TOUCH_MODE_REST; /** * Y value原创 2016-12-26 20:31:08 · 479 阅读 · 0 评论 -
AbstractListView源码分析6
/** * The position of the view that received the down motion event */ int mMotionPosition; 接收到向下移动事件的视图的位置 /** * The offset to the top of the mMotionPosition view when原创 2016-12-26 19:19:48 · 430 阅读 · 0 评论 -
AbstractListView源码分析6
/** * Subclasses must retain their measure spec from onMeasure() into this member */ int mWidthMeasureSpec = 0; 子类通过OnMeasure方法获得measure spec /** * The top scroll indica原创 2016-12-26 19:14:47 · 472 阅读 · 0 评论 -
AbstractListView源码分析5
/** * Indicates whether the list selector should be drawn on top of the children or behind */ boolean mDrawSelectorOnTop = false; 表明了list selector是否应该绘制在children的顶部还是后面 /**原创 2016-12-26 15:49:01 · 376 阅读 · 0 评论 -
AbstractListView源码分析4
/** * Running state of which positions are currently checked */ SparseBooleanArray mCheckStates; 存储那些位置被选中了 /** * Running state of which IDs are currently checked.原创 2016-12-26 15:38:29 · 366 阅读 · 0 评论 -
AbstractListView源码分析3
/** * Normal list that does not indicate choices */ public static final int CHOICE_MODE_NONE = 0; /** * The list allows up to one choice */ public static final原创 2016-12-26 15:20:34 · 351 阅读 · 0 评论 -
AbstractListView源码分析2
/** * Regular layout - usually an unsolicited layout from the view system,一般的布局 */ static final int LAYOUT_NORMAL = 0; /** * Show the first item,展示第一项 */ sta原创 2016-12-26 15:11:29 · 350 阅读 · 0 评论 -
AbstractListView源码分析1
public abstract class AbsListView extends AdapterView implements TextWatcher,ViewTreeObserver.OnGlobalLayoutListener, Filter.FilterListener, ViewTreeObserver.OnTouchModeChangeListener,原创 2016-12-26 14:45:08 · 405 阅读 · 0 评论 -
AbstractListView源码分析9
/** * Acts upon click */ private AbsListView.PerformClick mPerformClick; 表示upon click /** * Delayed action for touch mode. :延迟的动作用于touch mode */ private Ru原创 2016-12-27 11:34:01 · 463 阅读 · 0 评论