1
I have this code that creates a Alertdialog
public void mostrar_popup(){
AlertDialog.Builder dlg = new AlertDialog.Builder(getActivity());
dlg.setCancelable(false); //impede que a janela seja fechada ao clikcar fora
dlg.setMessage("É preciso digitar um texto para continuar ");
dlg.setNeutralButton("OK",null);
dlg.setPositiveButton("sim",null);
dlg.create();
dlg.show();
}
And the result is this
And that’s the result I’d like you to leave