AlertDialog.Builder dialogBuilder = new Builder(
ModelDeleteActivity.this);
dialogBuilder.setTitle("你真的要删除吗");
String[] strarrStrings = new String[] { "YES", "NO" };
ModelDeleteActivity.this);
dialogBuilder.setTitle("你真的要删除吗");
String[] strarrStrings = new String[] { "YES", "NO" };
而且好像可以设置messgae吧,有接口啊
AlertDialog.Builder setMessage(CharSequence message)
Set the message to display.
不过我用自定义布局实现了protected void onPrepareDialog(int id, Dialog dialog){
dialog.setTitle("选中了:" + selecd_itemid);
TextView tv = (TextView)dialog.findViewById(R.id.dialog_iteminfo_TextView);
tv.setText("原价225,现价69。 商品短介绍.....原价225,现价69。 商品短介绍.....原价225,现价69。 商品短介绍.....原价225,现价69。 商品短介绍.....原价225,现价69。 商品短介绍.....原价225,现价69。 商品短介绍.....原价225,现价69。 商品短介绍.....");
}
switch(id) {
case (TIME_DIALOG) :
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
Date currentTime = new Date(java.lang.System.currentTimeMillis());
String dateString = sdf.format(currentTime);
AlertDialog timeDialog = (AlertDialog)dialog;
timeDialog.setMessage(dateString);
break;
}
}