赞
踩
public static final AlertDialog createNewClientAlertDialog(final Activity aty,
final NewClientInfo newClinetRet) {
LayoutInflater factory = LayoutInflater.from(aty);
View view = factory.inflate(R.layout.update_client_dialog, null);
ImageView image = (ImageView)view.findViewById(R.id.overprint);
image.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {
Toast.makeText(aty, "提示内容", Toast.LENGTH_LONG).show();
}
});
Builder builder = new AlertDialog.Builder(aty);
builder.setIcon(R.drawable.update_dialog_hint);
builder.setTitle(R.string.dlg_hintmessage_title);
builder.setView(view);
builder.setPositiveButton(R.string.close,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
aty.finish();
}
});
builder.setNegativeButton(R.string.update,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
aty.finish();
}
});
return builder.create();
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。