AbstractListView源码分析1
来源:互联网 发布:周杰伦红模仿知乎 编辑:程序博客网 时间:2024/06/05 21:51
ViewTreeObserver.OnTouchModeChangeListener,
RemoteViewsAdapter.RemoteAdapterConnectionCallback {
其中这是类的继承的相关的知识点为:
ViewTreeObserver:这是一个注册监听视图树的观察者(Observer),在视图树中全局时间改变时得到通知。这个全局事件不仅包括这个树的布局,从绘画开始,触摸模式的盖帽等。VieTreeObserver不能被应用程序实例化,因为它是有视图提供,参照getViewTreeObserver()。
/**
* Disables the transcript mode.,禁用掉相关的自动滑动到底部的属性,
*
* @see #setTranscriptMode(int)
*/
public static final int TRANSCRIPT_MODE_DISABLED = 0;
/**
* The list will automatically scroll to the bottom when a data set change
* notification is received and only if the last item is already visible
* on screen.如果可见的情况下自动滑动到底部。
* @see #setTranscriptMode(int)
*/
public static final int TRANSCRIPT_MODE_NORMAL = 1;
/**
* The list will automatically scroll to the bottom, no matter what items
* are currently visible.,无论是否可见就滑动到底部
* @see #setTranscriptMode(int)
*/
public static final int TRANSCRIPT_MODE_ALWAYS_SCROLL = 2;
/**
/**
* Indicates that we are not in the middle of a touch gesture,表明我们不在一个触摸手势的中心
*/
static final int TOUCH_MODE_REST = -1;
/**
* Indicates we just received the touch event and we are waiting to see if the it is a tap or a
* scroll gesture.表明我们仅仅收到触摸事件和我们等待开是否是一个tap或者一个滑动手势
*/
static final int TOUCH_MODE_DOWN = 0;
/**
* Indicates the touch has been recognized as a tap and we are now waiting to see if the touch
* is a longpress表明现在收到的是一个tap,现在我们等待是否是一个长按事件
*/
static final int TOUCH_MODE_TAP = 1;
/**
* Indicates we have waited for everything we can wait for, but the user's finger is still down,表明我们已经等待了一切我们等待的事情,但是用户仍然在按下
*/
static final int TOUCH_MODE_DONE_WAITING = 2;
/**
* Indicates the touch gesture is a scroll,表明一个手势是一个滑动
*/
static final int TOUCH_MODE_SCROLL = 3;
/**
* Indicates the view is in the process of being flung,表明视图是个flung的过程
*/
static final int TOUCH_MODE_FLING = 4;
/**
* Indicates the touch gesture is an overscroll - a scroll beyond the beginning or end.表明触摸手势是overscroll
*/
static final int TOUCH_MODE_OVERSCROLL = 5;
/**
* Indicates the view is being flung outside of normal content bounds,表明视图是被flung到正常内容的边界
* and will spring back.
*/
static final int TOUCH_MODE_OVERFLING = 6;
- AbstractListView源码分析1
- AbstractListView源码分析2
- AbstractListView源码分析3
- AbstractListView源码分析4
- AbstractListView源码分析5
- AbstractListView源码分析6
- AbstractListView源码分析6
- AbstractListView源码分析7
- AbstractListView源码分析8
- AbstractListView源码分析9
- Lua源码分析(1)
- cvDilate 源码分析(1)
- MTD源码分析(1)
- JQuery 源码分析 -1
- SMV源码分析1
- libhdfs源码分析(1)
- Leveldb源码分析--1
- LVS源码分析(1)
- 如何在Elasticsearch中安装中文分词器(IK+pinyin)
- java windows服务器 实现文档在线预览
- ECharts属性设置
- CRC-16校验原理
- 配置PHP中的mail方法发送邮件
- AbstractListView源码分析1
- LLDB使用详解
- CentOS下安装word2Vec
- JAVA 解压tar.gz格式文件
- php 与类相关的系统函数;
- IPC跨进程交互(2)AIDL的使用
- 使用iPhone来提醒自己-日历和提醒事项
- FME geotiff合并步骤
- linux学习笔记--ipcs命令