こんにちは、助けてくれてありがとう。
次のコードを使用して、MapView Overlay で一般的な AlertDialog を生成しています (すべて動作しています)。custom.xml というカスタム AlertDialog を呼び出すために、どのように、または何を変更すればよいか知りたいです。
@Override
protected boolean onTap(int i)
{
//final Dialog dialoggg = new Dialog(mContext);
// dialoggg.setContentView(R.layout.custom);
// LayoutInflater inflater = LayoutInflater.from(mContext);
// View dialogview = inflater.inflate(R.layout.custom, null);
//when you tap on the marker this will show the informations provided by you when you create in the
//main class the OverlayItem
OverlayItem item = mOverlays.get(i);
AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
builder.setMessage(item.getSnippet())
.setTitle(item.getTitle())
.setCancelable(true)
.setPositiveButton("View Details", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Intent intent = new Intent(new Intent("com.GoGoGo.Play.LINEUP"));
mContext.startActivity(intent);
}
})
.setNegativeButton("Close window", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.dismiss();
}
});
AlertDialog alert = builder.create();
alert.show();
return true;
}
AlertDialog の背景色を (標準のグレーから) 黒に変更したいだけです。
あなたの時間と助けに感謝します。-どうも