I'm creating an AlertDialog. If create it like this:
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();
This is the result: http://www.ozze.com.br/1.png
But, if I try to set a theme, like this:
AlertDialog.Builder builder = new AlertDialog.Builder(((RelationActivity)getContext()), android.R.style.Theme_Holo_Light_Dialog);
This is the result: http://www.ozze.com.br/2.png
Please, can anyone help me with this issue? It looks like when using a theme, the theme "surrounds" the alert dialog.