非常简单。ProgressDialog类中重载了4个show方法,其中一个是
show(Context context, CharSequence title, CharSequence message,
boolean indeterminate, boolean cancelable)
把最后的参数boolean cancelable设置为true,就可以让返回键关闭ProgressDialog了。
非常简单。ProgressDialog类中重载了4个show方法,其中一个是
show(Context context, CharSequence title, CharSequence message,
boolean indeterminate, boolean cancelable)
把最后的参数boolean cancelable设置为true,就可以让返回键关闭ProgressDialog了。