1
Good, could someone tell me why my Alertdialog is deformed , with that white piece on top of the text ?
Here’s the code I create it in :
AlertDialog.Builder builder = new AlertDialog.Builder(ChoseSecundarioDisciplinas.this,android.R.style.Theme_Holo_Light_Dialog_MinWidth);
builder.setCancelable(true);
builder.setMessage("Frequenta o 12º ano de ensino?");
builder.setPositiveButton("Sim",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which) {
decimoSegundo=true;
dialog.dismiss();
}
});
builder.setNegativeButton("Não",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which) {
disciplinasSecundario.add("Filosofia");
decimoSegundo=false;
dialog.dismiss();
}
});
AlertDialog alert = builder.create();
alert.show();
Button nbutton = alert.getButton(DialogInterface.BUTTON_NEGATIVE);
nbutton.setTextColor(getResources().getColor(R.color.Cyan));
Button pbutton = alert.getButton(DialogInterface.BUTTON_POSITIVE);
pbutton.setTextColor(getResources().getColor(R.color.Cyan));
What would be the problem?
– Steve Rogers
It gets ugly .....
– Emanuel Sobreiro