AlertDialog.Builder dialog=new AlertDialog.Builder(context);
dialog.setTitle("提示")
.setMessage("确定取消订单吗?")
.setNegativeButton("取消", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
}
})
.setPositiveButton("确定", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
holder.orderStatus.setTextColor(Color.parseColor("#000000"));
holder.orderStatus.setText("已取消");
}
}).create().show();
dialog.setTitle("提示")
.setMessage("确定取消订单吗?")
.setNegativeButton("取消", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
}
})
.setPositiveButton("确定", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
holder.orderStatus.setTextColor(Color.parseColor("#000000"));
holder.orderStatus.setText("已取消");
}
}).create().show();