80,472
社区成员




new AlertDialog.Builder(ICU_login.this)
.setTitle("标题")
.setMessage("自定义按钮")
.setNegativeButton("取消", null)
.show();
AlertDialog.Builder builder = new AlertDialog.Builder(this).setMessage("我是内容").setNegativeButton("取消", null);
TextView title = new TextView(this);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
params.gravity = Gravity.CENTER;
title.setText("标题");
title.setLayoutParams(params);
builder.setCustomTitle(title);
builder.show();
AlertDialog.Builder builder = new AlertDialog.Builder(this);
TextView title = new TextView(this);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
params.gravity = Gravity.CENTER;
title.setText("标题");
title.setLayoutParams(params);
builder.setView(title);
builder.show();