0

默认情况下,在启用上下文操作时,我们可以在左侧看到操作 DONE。

1)如何添加另一个动作取消?

2) 在点击动作完成上下文动作模式被禁用。如何在单击完成之前添加一些验证,如果需要,取消此操作(单击时不要禁用操作模式)?

3) 我可以隐藏动作 DONE 吗?

4

1 回答 1

0

How I can add another action CANCEL?

That is not necessary, as the user can just click the BACK button to dismiss the action mode.

How I can add some verify before click DONE and if need, cancel this action (on click do not disable action mode)?

That is not supported, sorry.

Can I hide action DONE?

That is not supported, sorry.

It really sounds like an action mode is not the right approach for whatever it is you are attempting to accomplish. You could consider making a separate activity for this particular operation and using the "done" or "done/discard" custom action views that Roman Nurik wrote about.

于 2012-09-02T22:28:46.467 回答