另外,Android中显示一对话框的代码似乎非常简单:
private void msgbox(String Message){ AlertDialog alertDialog = new AlertDialog.Builder(this).create(); alertDialog.setTitle("This is Title"); alertDialog.setMessage(Message); alertDialog.setButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { //here you can add functions } }); alertDialog.show(); }
原创文章,作者:苏葳,如需转载,请注明出处:https://www.swmemo.com/280.html
评论列表(1条)
To add to the si1;lness:RubenRl7is MLE triple-slash for the SAL, from the alternate universe where he went to an American college and got drafted and sent to low-A like a typical 21-year-old: .450/.563/.541.