About 52 results
Open links in new tab
  1. How do I display an alert dialog on Android? - Stack Overflow

    Jan 22, 2010 · Keep in mind AlertDialog.Builder cannot be dismissed via dismiss () method. You can use alternatively AlertDialog dialog = new AlertDialog.Builder (context).create (); and you will be able to …

  2. dart - How to make an AlertDialog in Flutter? - Stack Overflow

    Dec 19, 2018 · I am learning to build apps in Flutter. Now I have come to alert dialogs. I have done them before in Android and iOS, but how do I make an alert in Flutter? Here are some related SO …

  3. Android simple alert dialog - Stack Overflow

    AlertDialog alertDialog = new AlertDialog.Builder(MainActivity.this).create(); alertDialog.setTitle("Alert"); alertDialog.setMessage("Alert message to be shown ...

  4. How to display AlertDialog in a Fragment? - Stack Overflow

    The NullPointerException occurred specifically when calling alertDialog.show() later on in the code. But after searching the documentation for AlertDialog.Builder(), there seemed to be another way to …

  5. Android AlertDialog Builder - Stack Overflow

    Dec 3, 2012 · I have an alertdialog that I show but no matter what I do the alertdialog shows with a blank Title and Message. The Icon, the Positive button and negative buttons show ok with correct …

  6. How to implement a custom AlertDialog View - Stack Overflow

    Mar 2, 2015 · In the Android docs on AlertDialog, it gives the following instruction and example for setting a custom view in an AlertDialog: If you want to display a more complex view, look up the …

  7. java - ¿Se puede personalizar un AlertDialog con botones y que estos ...

    Mar 13, 2018 · En mi XML le seteo la vista con 2 botones (Cancelar,Aceptar), y cree mi propia clase de AlertDialog y AlertDialog.Builder para que este sea el mismo en toda la aplicacion. La cuestion es …

  8. android - How to change theme for AlertDialog - Stack Overflow

    Mar 11, 2010 · I have written an article in my blog on how to configure the layout of an AlertDialog with XML style files. The main problem is that you need different style definitions for different layout …

  9. How to dismiss an AlertDialog on a FlatButton click?

    May 24, 2017 · That's a fine solution, but there's a problem with that if AlertDialog is due to be closed automatically in 5 seconds, then if user taps elsewhere around dialog, thus closing dialog, after 5 …

  10. How to control the width and height of the default Alert Dialog in ...

    With AlertDialog.builder and another 2. actvity with theme Dialog, second one is better solution , only drawback being if one has to send some results back to the background view , have to use …