问题描述 调用AlertDialog中的AlertDialog public class Example { String sp,st; SQLiteDatabase database, database2; void func() { new AlertDialog.Builder(view.getContext()) .setIcon(android.R.drawable.ic_dialog_alert) .setTitle("Confirm") .setMessage("
昨天晚上弄到很晚,简单的看了下Dialog的源码,说要分析下建造者模式,在dialog里面的应用其实是在AlertDialog中. 按照惯例,先看类说明: [java] view plaincopy A subclass of Dialog that can display one, two or three buttons. If you only want to display a String in this dialog box, use the setMessage() method.