Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在android文档中据说可以在类的调用create()和show()方法之间进行一些处理AlertDialog.Builder应该进行什么样的处理?
create()
show()
AlertDialog.Builder
调用 create 后,您将获得一个对象AlertDialog。所以你可以使用任何方法AlertDialog。 Builder没有提供的更精细的控制AlertDialog。例如,您可以使用setCancelMessage(Message msg)构建器中未提供的,或者您可以设置setOnShowListener构建器也未提供的
AlertDialog
Builder
setCancelMessage(Message msg)
setOnShowListener