I'm having a problem with buttons created in AlertDialog. I'm doing an APP of sentences and at certain times the sentences are very big and causes the buttons in AlertDialog to come down. Is it possible to fix these buttons? Here is an example of what happens: link
My code is this:
// ALERT DIALOG
//atributo da classe.
//Cria o gerador do AlertDialog
AlertDialog.Builder builder = new AlertDialog.Builder(FraseAutorFrase.this);
builder.setTitle("O que deseja fazer?");//define o titulo
builder.setMessage("\nFrase: " + frasesR [position]);//define a mensagem
builder.setView(checkBoxView);
//define um botão como positivo
builder.setNeutralButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface arg0, int arg1) {
}
});
//define um botão como compartilhar
builder.setPositiveButton("Compartilhar", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface arg0, int arg1) {
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, frasesR[position] );
sendIntent.setType("text/plain");
startActivity(sendIntent);
}
});
alerta = builder.create();//cria o AlertDialog
alerta.show();//Exibe
Thank you!