AlertDialog を作成しています。次のように作成する場合:
AlertDialog.Builder builder = AlertDialog.Builder((RelationActivity)getContext());
builder.setMessage("No relations found.");
builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
((RelationActivity)getContext()).finish();
}
});
builder.create();
builder.show();
これが結果です: http://www.oze.com.br/1.png
しかし、テーマを設定しようとすると、次のようになります。
AlertDialog.Builder builder = new AlertDialog.Builder(((RelationActivity)getContext()), android.R.style.Theme_Holo_Light_Dialog);
これが結果です: http://www.oze.com.br/2.png
この問題について誰か助けてください。テーマを使用すると、テーマが警告ダイアログを「囲む」ように見えます。