Questions tagged as 'alertdialog'

1
answer

Checkboxes in AlertDialog always return the same values

I have AlertDialog with a custom layout with 2 checkboxes. But even if I click on one of those checkboxes, clicking on the accept or cancel buttons ( alert.setPositiveButton or alert.setNegativeButton ), I get the default che...
asked by 08.12.2016 / 13:06
1
answer

Alert Dialog with custom Gif image

I would like to know how to create a custom Alert Dialog where you have an ImageView containing a GIF. In my Main. imgAndroid = (Button) findViewByid (R.id.imagandroid); imgAndroid.setBackgroundResource (R.drawable.imagee); anime = (Anima...
asked by 28.12.2016 / 19:31
1
answer

AlertDialog Android "comment" PopupMenu

How do I get this result? The3dotsinthisimagehavealreadybeenpressed.Mylayout<android.support.v7.widget.CardViewxmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:to...
asked by 13.02.2017 / 23:45
2
answers

How do I change the color of AlertDialog

I put in my app where you can show the dialog to exit the application, but the dialog is black. I wanted him to go white. How do I change the AlertDialog theme? @Override // SAIR DA APLICAÇÃO public void finish() { if (sair) {...
asked by 17.11.2016 / 05:42
1
answer

How do I call a progressBar within Dialog?

I would like to know if there is any way to call a ProgressBar within an AlertDialog ... If so, how do I?     
asked by 17.08.2017 / 21:08
2
answers

How do I make a connection alert?

Well I'm a beginner in ajax and wanted to know how I can do an Internet connection check, and display a message on the screen whether or not I have an active internet connection (I imagine this is possible with Ajax, but I still do not find anyt...
asked by 03.02.2018 / 17:27
1
answer

How to open an AlertDialog?

Well, I'm learning about Fragments now. From what I understand, fragments are components, something you want to repeat on several screens, without having to create multiple class or activity's. I'm trying to create a dialog, it will be using...
asked by 10.06.2017 / 00:58
1
answer

How do I set the buttons in AlertDialog?

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 o...
asked by 07.06.2017 / 16:25
2
answers

Return values using Dialog's

I have the following dialogConfirme method in which it contains a custom dialog declared as public static to return a value of type boolean . The static issue is so I can call any class using a context as shown...
asked by 06.09.2016 / 16:52
1
answer

How do I know if the user clicked outside AlertDialog?

My question is quite simple, but I'm not finding something I can use. In my android project, I check the GPS connection of the user's device, and if it is not active, I ask for a dialog box to be activated, with two buttons, cancel and settin...
asked by 10.04.2015 / 15:08