Android 4.0 r1 API中文文档——(待审核)widget.AbsListView.MultiChoiceModeListener(answer-huang)

Document Sample
Android 4.0 r1 API中文文档——(待审核)widget.AbsListView.MultiChoiceModeListener(answer-huang) Powered By Docstoc
					             AbsListView.MultiChoiceModeListener
                          译者署名:answer-huang
                    译者链接:http://blog.csdn.net/IrishDiamondAnswer
                             版本:Android 4.0 r1

一、结构
    implements ActionMode.Callback
        android.widget.AbsListView.MultiChoiceModeListener
二、类概述

A MultiChoiceModeListener receives events for CHOICE_MODE_MULTIPLE_MODAL.
It acts as the ActionMode.Callback for the selection mode and also receives
onItemCheckedStateChanged(ActionMode, int, long, boolean) events when the user
selects and deselects list items.

一个多选模式的监听器,为 CHOICE_MODE_MULTIPLE_MODAL 接受事件,它充当
行为模式。当用户选择和删除 list items 的时候,为选择模式回收并且接受
onItemCheckedStateChanged(ActionMode, int, long, boolean)事件。
三、Summary
三、概述
Inherited Methods
From interface android.view.ActionMode.Callback
 abstract boolean     onActionItemClicked(ActionMode mode, MenuItem item)
                      Called to report a user click on an action button.
 abstract boolean     onCreateActionMode(ActionMode mode, Menu menu)
                      Called when action mode is first created.
 abstract void        onDestroyActionMode(ActionMode mode)
                      Called when an action mode is about to be exited and
                      destroyed.
 abstract boolean     onPrepareActionMode(ActionMode mode, Menu menu)
                      Called to refresh an action mode's action menu whenever it
                      is invalidated.



继承的方法
来自 interface android.view.ActionMode.Callback
abstract boolean    onActionItemClicked(ActionMode mode, MenuItem item)
                        在一个行为按钮上,被唤醒来报告一个用户的点击
 abstract boolean       onCreateActionMode(ActionMode mode, Menu menu)
                        行为模式第一次被创建的时候被唤醒
 abstract   void        onDestroyActionMode(ActionMode mode)
                        当一个行为模式即将退出和销毁的时候被唤醒
 abstract boolean       onPrepareActionMode(ActionMode mode, Menu menu)
                        每当它无效的时候,被用来刷新行为模式的行为菜单




四、Public Methods
四、公共方法
public abstract void onItemCheckedStateChanged(ActionMode mode, int position, long id,
boolean checked)
Called when an item is checked or unchecked during selection mode.
在选择模式下,当一个 item 被选中或未被选中的时候被唤醒。
  Parameters
  参数

        Mode     The ActionMode providing the selection mode
        Mode     行为模式提供选择模式

        Position Adapter position of the item that was checked or unchecked
        Position item 的状态适配器,有选中和未选中两个状态

        Id       Adapter ID of the item that was checked or unchecked
        Id       item 的 id 适配器,有选中和未选中两个状态

        Checked true if the item is now checked, false if the item is now unchecked.
        Checked 如果当前 item 被选中则 true,否则为 false。

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:88
posted:9/5/2012
language:Unknown
pages:2