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;
本文详细介绍了AbsListView类,它是一个抽象的列表视图基类,继承自AdapterView并实现了多个接口。文章解释了不同触摸模式的意义及列表滚动模式的设置方法。
1262

被折叠的 条评论
为什么被折叠?



