Undo and Redo 取消和重做

翻譯目錄

Many apps allow people to shake the device to undo and redo certain operations, such as typing or deleting. When initiated in this manner, an alert asks the user to confirm or cancel the undo or redo operation.

大多數(shù)應(yīng)用允許用戶以晃動(dòng)設(shè)備來(lái)取消或重做某些操作,如輸入或刪除. 當(dāng)觸發(fā)這個(gè)模式,會(huì)有一個(gè)彈出框要求用戶確定或取消這個(gè)取消或重做操作.

Briefly and precisely describe the operation to be undone or redone.The undo and redo alert title automatically includes a prefix of “Undo ” or “Redo ” (including the trailing space). You need to provide an additional word or two that describe what’s being undone or redone, to appear after this prefix. For example, you might create alert titles such as “Undo Name” or “Redo Address Change.”

簡(jiǎn)要準(zhǔn)確的描述這個(gè)操作將被取消或重做。這個(gè)取消和重做彈出框標(biāo)題自動(dòng)包含“取消”或“重做”前綴(包含尾隨空格)。在前綴之后,你需要提供額外的描述說(shuō)明什么將被取消或重做。例,你可以創(chuàng)建“取消命名”或“重做地址變更”類似彈出框標(biāo)題。

If you use the shake gesture for undo and redo, don’t use it for other actions.Although you can programmatically give multiple meanings to the shake gesture, you run the risk of confusing people and making your app unpredictable.

如果你使用搖晃手勢(shì)來(lái)取消或重做,則不要用它來(lái)做其他操作。雖然你能給搖晃手勢(shì)編程序?yàn)槎喾N意義,但這會(huì)產(chǎn)生用戶混亂和應(yīng)用不可預(yù)測(cè)的風(fēng)險(xiǎn)。

Provide undo and redo buttons sparingly.It’s confusing when apps provide multiple ways to perform the same task. If your app truly warrants dedicated undo and redo buttons, use the standard system-provided icons and put them in an expected location, such as a navigation bar.

保守的提供取消和重做按鈕.當(dāng)應(yīng)用提供多種方式來(lái)執(zhí)行一樣的任務(wù)是會(huì)引起混淆. 如果你的應(yīng)用確實(shí)有正當(dāng)理由專門用取消和重做按鈕,使用系統(tǒng)提供的標(biāo)準(zhǔn)圖標(biāo)并放置在預(yù)期的位置,比如導(dǎo)航欄。

Perform undo and redo operations in the current context only.Undo and redo should have a clear and immediate effect on the current context, not an earlier one.

僅在當(dāng)前情景使用取消和重做操作。并應(yīng)該在當(dāng)前的場(chǎng)合下有一個(gè)清楚且及時(shí)的響應(yīng),而不是較早期的。

For implementation details, seeUndo Architecture.

更多實(shí)現(xiàn)細(xì)節(jié),參閱 UndoArchitecture.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容