AbstractListView源码分析8
/**
* Maximum distance to record overscroll 记录overscroll的最大的距离
*/
int mOverscrollMax;
/**
* Content height divided by this is the overscroll limit.内容的高度除以这个数值,为overscroll的limit
*/
static final int OVERSCROLL_LIMIT_DIVISOR = 3;
/**
* How many positions in either direction we will search to try to
* find a checked item with a stable ID that moved position across
* a data set change. If the item isn't found it will be unselected.
*/
private static final int CHECK_POSITION_SEARCH_DISTANCE = 20;在一个方向将要搜索的位置数目,来寻找一个checked的条目(带有stable ID)整个数据集的改变。如果这个item没有被发现,它将是unselected。
/**
* Used to request a layout when we changed touch mode被用来请求一个布局当我们改变了touchmode
*/
private static final int TOUCH_MODE_UNKNOWN = -1;
private static final int TOUCH_MODE_ON = 0;
private static final int TOUCH_MODE_OFF = 1;
private int mLastTouchMode = TOUCH_MODE_UNKNOWN;
private static final boolean PROFILE_SCROLLING = false;
private boolean mScrollProfilingStarted = false;
/**
* The StrictMode "critical time span" objects to catch animation
* stutters. Non-null when a time-sensitive animation is
* in-flight. Must call finish() on them when done animating.
* These are no-ops on user builds.
*/
private StrictMode.Span mScrollStrictSpan = null;
private StrictMode.Span mFlingStrictSpan = null;
/**
* The last CheckForLongPress runnable we posted, if any
*/
private CheckForLongPress mPendingCheckForLongPress;
/**
* The last CheckForTap runnable we posted, if any
*/
private CheckForTap mPendingCheckForTap;
/**
* The last CheckForKeyLongPress runnable we posted, if any
*/
private CheckForKeyLongPress mPendingCheckForKeyLongPress;
AbstractListView源码分析8相关推荐
- AbstractListView源码分析9
/** * Acts upon click */ private AbsListView.PerformClick mPerformClick; 表示upon click ...
- AbstractListView源码分析6
/** * The position of the view that received the down motion event */ int mMotionPosit ...
- AbstractListView源码分析5
/** * Indicates whether the list selector should be drawn on top of the children or behind ...
- AbstractListView源码分析4
/** * Running state of which positions are currently checked */ SparseBooleanArray mCheckS ...
- AbstractListView源码分析2
/** * Regular layout - usually an unsolicited layout from the view system,一般的布局 */ sta ...
- 【Golang源码分析】Go Web常用程序包gorilla/mux的使用与源码简析
目录[阅读时间:约10分钟] 一.概述 二.对比: gorilla/mux与net/http DefaultServeMux 三.简单使用 四.源码简析 1.NewRouter函数 2.HandleF ...
- SpringBoot-web开发(四): SpringMVC的拓展、接管(源码分析)
[SpringBoot-web系列]前文: SpringBoot-web开发(一): 静态资源的导入(源码分析) SpringBoot-web开发(二): 页面和图标定制(源码分析) SpringBo ...
- SpringBoot-web开发(二): 页面和图标定制(源码分析)
[SpringBoot-web系列]前文: SpringBoot-web开发(一): 静态资源的导入(源码分析) 目录 一.首页 1. 源码分析 2. 访问首页测试 二.动态页面 1. 动态资源目录t ...
- SpringBoot-web开发(一): 静态资源的导入(源码分析)
目录 方式一:通过WebJars 1. 什么是webjars? 2. webjars的使用 3. webjars结构 4. 解析源码 5. 测试访问 方式二:放入静态资源目录 1. 源码分析 2. 测 ...
最新文章
- ASP.NET中数据缓存
- SVD分解的并行实现
- [译]Speeding up your PHP scripts
- [云炬创业学笔记]第一章创业是什么测试11
- mysql locate 和 like_MySQL比like语句更高效的写法locate position instr find_in_set
- linux定时备份mysql数据并同步到其他服务器
- 3/100. Merge Two Binary Trees
- python 中的pickle库
- vue实现网络图片瀑布流 + 下拉刷新 + 上拉加载更多
- docker 搭建 web_《SpringBoot+Dubbo+Zookeeper整合搭建简单的分布式应用》
- 横向越权访问java_基于ThinkPhp5开发横向越权逻辑漏洞安全指南
- 新版chrome移动端踩坑
- 【NLP】(task8)Transformers完成抽取式问答+多选问答任务(更新ing)
- [.NET源码] asp.net中手机版和PC版识别
- python界面设计-文件操作excel读写-发动机激励、悬置系统模态及振动计算
- 小米 MAX 2 官方ROM历史版本汇总
- 排序(一)冒泡排序法
- Abp mysql guid_使用ABP框架踩过的坑系列5
- 从移动互联网困局漫谈人工智能的未来
- 2018-2019-2 20175227张雪莹 《Java程序设计》 实验一 Java开发环境的熟悉
热门文章
- linux使用权限模式启动mongodb,Linux安装MongoDB启动及常见问题解决
- JPEG原理分析及JPEG解码器的调试
- [LeetCode] Number of 1 Bits Reverse Integer - 整数问题系列
- 【数据结构与算法】之深入解析“交错字符串”的求解思路与算法示例
- 征战蓝桥 —— 2016年第七届 —— C/C++A组第4题——快速排序
- 信息学奥赛一本通(C++)在线评测系统——基础(二)基础算法 —— 1313:【例3.5】位数问题
- 征战蓝桥 —— 2013年第四届 —— C/C++A组第4题——颠倒的价牌
- Java 利用InetAddress类确定特殊Ip地址
- 【Tools】MarkDown教程(一)-MarkDown简介
- 【Protocol Buffer】Protocol Buffer入门教程(一):简介和安装