我正在做一个 AlertDialog,它有一个图像和一个标题:
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
builder.setTitle("Recuerda tirar del cable");
builder.setIcon(context.getResources().getDrawable(R.drawable.tira_cable));
builder.setPositiveButton(R.string.accept, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
//actions
}
});
AlertDialog dialog = builder.create();
dialog.show();
标题未显示:
标题在哪里?我无法理解!