私のカスタムヘッダーが必要ですCustomAlert
。ダイアログのタイトルのカスタム レイアウトはどうすればよいですか?
Edit2:私は自分のコードを追加しました:
protected Dialog onCreateDialog(int id)
{
switch(id)
{
case Dialog_Reset :
Dialog dialog=new Dialog(this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setContentView(R.layout.about);
dialog.setCanceledOnTouchOutside(true);
return dialog;
}
return super.onCreateDialog(id);
}
ダイアログのデフォルトのヘッダーが気に入らないので、カスタムヘッダーがあることを学びながら、今すぐ削除します。