I am using the Holo_Dialog theme in an AlertDialog, the problem is that the title comes out below the line of separation, how could I put the title above ?, or if I use the theme Theme_AppCompat_Dialog_MinWidth, how could I separate the title from menasaje? attached photos
this is the alertDialog with the holo theme, how can I get the title out above the line?
this is the alertdialog with the topic Theme_AppCompat_Dialog_MinWidth, how can I make the title and the text separated by a line?
this is the code for theme Theme_Holo_Dialog
public void alertDialogExtraerBase() {
AlertDialog.Builder builder = new AlertDialog.Builder(this, android.R.style.Theme_Holo_Dialog);
builder.setIcon(R.drawable.extraer);
builder.setTitle("EXTRAER BASE?")
.setCancelable(false)
.setMessage("Se hara una copia de la base de datos, se guardara en la memoria interna del dispositivo, en la carpeta 'BACKUPSERIES'");
builder.setPositiveButton("ACEPTAR", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
extraer.extraerbase(MainActivity.this);
}
});
builder.setNegativeButton("CANCELAR", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
});
builder.show();
}
this is the code for theme Theme_AppCompat_Dialog_MinWidth
public void alertDialogImportarBase() {
AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.Theme_AppCompat_Dialog_MinWidth);
builder.setIcon(R.drawable.importar);
builder.setTitle("IMPORTAR BASE?")
.setCancelable(false)
.setMessage("Asegurate que tienes una copia de la base guardada en la carpeta 'BACKUPSERIES'");
builder.setPositiveButton("ACEPTAR", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
importar.importarbase(MainActivity.this);
}
});
builder.setNegativeButton("CANCELAR", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
});
builder.show();
}
can someone help me? thanks