遭解雇或取消Android的对话框之间的区别是什么? [英] What is the difference between a dialog being dismissed or canceled in Android?
问题描述
就像标题所说的,什么是被解雇或取消Android的对话框之间的区别是什么?
Like the title says, what is the difference between a dialog being dismissed or canceled in Android?
推荐答案
通常情况下,当它的作业完成后,将驳回了对话框,它从屏幕上消失。当用户想逃避对话和presses后退按钮被取消的对话框。
Typically, a dialog is dismissed when its job is finished and it is being removed from the screen. A dialog is canceled when the user wants to escape the dialog and presses the Back button.
例如,您有一个标准是/否对话框在屏幕上。如果用户点击否,则该对话被驳回,为否的值被返回给调用者。如果不是选择是或否,用户可以单击后退逃避对话,而不是做一个选择,然后在对话框中取消,没有值返回给调用者。
For example, you have a standard Yes/No dialog on the screen. If the user clicks No, then the dialog is dismissed and the value for No is returned to the caller. If instead of choosing Yes or No, the user clicks Back to escape the dialog rather than make a choice then the dialog is canceled and no value is returned to the caller.
这篇关于遭解雇或取消Android的对话框之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!