AbstractListView源码分析4
/**
* Running state of which positions are currently checked
*/
SparseBooleanArray mCheckStates; 存储那些位置被选中了
/**
* Running state of which IDs are currently checked.
* If there is a value for a given key, the checked state for that ID is true
* and the value holds the last known position in the adapter for that id.
*/
LongSparseArray<Integer> mCheckedIdStates; 那些ID被选中
/**
* Controls how the next layout will happen
*/
int mLayoutMode = LAYOUT_NORMAL;当前显示模式
/**
* Should be used by subclasses to listen to changes in the dataset
*/
AdapterDataSetObserver mDataSetObserver;由子类使用来监听数据库的改变
/**
* The adapter containing the data to be displayed by this view
*/
ListAdapter mAdapter; 包含被展示在这个view上的数据
/**
* The remote adapter containing the data to be displayed by this view to be set
*/
private RemoteViewsAdapter mRemoteAdapter; 包含数据的远程adapter展示在这个视图上,remoteview中嵌入listview时使用。
/**
* If mAdapter != null, whenever this is true the adapter has stable IDs.
*/
boolean mAdapterHasStableIds; 作用如果Adapter的hasStableIDS返回true,这样notifyDataSetChanged的时候,id不变,ListView将不会重新绘制这个view;
/**
* This flag indicates the a full notify is required when the RemoteViewsAdapter connects
*/
private boolean mDeferNotifyDataSetChanged = false;这个flag表明一个完全的通知是需要当RemoteViewsAdapter连接时。
AbstractListView源码分析4相关推荐
- AbstractListView源码分析9
/** * Acts upon click */ private AbsListView.PerformClick mPerformClick; 表示upon click ...
- AbstractListView源码分析8
/** * Maximum distance to record overscroll 记录overscroll的最大的距离 */ int mOverscrollMax; ...
- 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源码分析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. 测 ...
最新文章
- (Shadow,Gradient)
- 学习junit和hamcrest的使用
- [Bug]由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值的解决方法(转)...
- python做大型网站_Python中的大型Web应用:一个好的架构
- php 9000 端口没起来,ubuntu fpm-php 未监听9000端口问题
- 看到他我一下子就悟了---委托
- java并发:初探用户线程和守护线程
- cad和python哪个好学_cad制图工资一般多少 就业前景好不好
- 下c语言实现wc_用 Python 实现词云可视化
- 实习成长之路:MySQL七:事务到底是隔离的还是不隔离的?
- 在CentOS 7上安装Nginx服务器
- 计算机在线考试系统监考,在线考试系统怎样实现监考功能
- excel服务器模板修改,勤哲Excel服务器设计查询模板
- 武汉大学计算机在职,武汉大学计算机技术工程硕士专业在职研究生 学位论文工作开展步骤概述...
- electron 自定义右键菜单
- 地图-导航(百度/高德)
- 永恒之塔总是服务器未响应,《剑网3》《永恒之塔》怀旧服刚开上演“冲级热”,八月怀旧游戏集体搞事...
- property follows cocoa naming convention for returning ‘owned‘ objects
- android 字符串缩进换行换行,Android Textview第二行缩进/悬挂缩进
- 吴恩达机器学习笔记(五)正则化Regularization