0
ボタンをクリックすると、SQLiteデータベースの情報を含むダイアログが開きます。私は背景色とテキストの色を変更する方法を考え出しましたが、タイトルテキストの色の設定に問題があります。また、Dialogのタイトルの隅にボタンを置く方法があるのだろうかと思っていましたか?閉じるボタンをそこに配置したいと思います。ここでAndroidのダイアログタイトルの色とタイトルボタン?
はあなたのreleventデザインとして独自のカスタムアラートdailogを設計する必要がありますダイアログ
public void onClickHelp(View v) {
final Dialog duDialog = new Dialog(this);
duDialog.setContentView(R.layout.data_usage);
duDialog.getWindow().setBackgroundDrawableResource(R.color.title_text);
duDialog.setTitle("Data Usage"); // I would like to set the color and add button here
ListView data = (ListView) duDialog.findViewById(R.id.DataUsage);
duCursor = Data.getAll(db);
startManagingCursor(duCursor);
duAdapter = new DataAdapter(duCursor);
data.setAdapter(duAdapter);
duDialog.show();
}