Android产生一个提示框
可以使用AlertDialog.Builder 才产生一个提示框 首先最简单的是弹出一个消息框: 1 2 3 4 5 6 new AlertDialog.Builder(self) .setTitle( "标题" ) .setMessage( "简单消息框" ) .setPositiveButton( "确定" , null ) .show(); 效果如下: 带确认和取消按钮的对话框: 1 2 3 4 5 6 new AlertDialog.Builder(self) .setTitle( "是吗" ) .setMessage( "是吗?" ) .setPositiveButton( "是" , null ) .setNegativeButton( "否" , null ) .show(); 可以输入文本的对话框: 1 2 3 4 5 6 7 new AlertDialog.Builder(self) .setTitle( "请输入文本:" ) .setIcon(android.R.drawable.ic_dialog_info) .setView( new EditText...