10

我正在寻找从 Honeycomb 中的 gmail 应用程序复制操作栏实现

不幸的是,我无法发布图片,因为我是新来的。

基本上,当您选择一封或更多电子邮件时,您的操作栏会通过以下方式动画到不同的操作栏: 1.上下文按钮

2.一个新的“完成”按钮出现在主页图标上。

有谁知道如何做到这一点?

4

1 回答 1

15

Call the startActionMode method available on any View or your Activity. This method accepts an ActionMode.Callback object that will manage the lifecycle of the contextual mode. startActionMode will return an ActionMode object if starting the mode was successful, or null if the request was rejected.

If you are specifically creating a multiple selection mode for a ListView, you can take a shortcut and use CHOICE_MODE_MULTIPLE_MODAL.

于 2011-05-14T16:26:37.693 回答