new AlertDialog.Builder(AlertDialogDemo. this ) |
/* 弹出窗口的最上头文字 */ |
.setTitle(R.string.app_about) |
/* 设置弹出窗口的图式 */ |
.setIcon(R.drawable.hot) |
/* 设置弹出窗口的信息 */ |
.setMessage(R.string.app_about_msg) |
.setPositiveButton(R.string.str_ok, |
new DialogInterface.OnClickListener() { |
public void onClick( |
DialogInterface dialoginterface, |
int i) { |
finish(); /* 关闭窗口 */ |
} |
}) |
/* 设置弹出窗口的返回事件 */ |
.setNegativeButton(R.string.str_no, |
new DialogInterface.OnClickListener() { |
public void onClick( |
DialogInterface dialoginterface, |
int i) { |
} |
}).show(); |
初级程序员
by: kbc 发表于:2013-09-03 11:04:31 顶(0) | 踩(0) 回复
有截图嘛?
网友回复
回复小蜜锋 : 呵呵,这个不需要看截图了吧?
顶(0) 踩(0) 2013-09-14 09:42:15
回复评论