Questions tagged [android-dialog]

Base class for Dialogs. A dialog in Android is a small window that prompts the user to make a decision or enter additional information. A dialog does not fill the screen and is normally used for modal events that require users to take an action before they can proceed.

A dialog is usually a small window that appears in front of the current Activity. The underlying Activity loses focus and the dialog accepts all user interaction. Dialogs are normally used for notifications that should interrupt the user and to perform short tasks that directly relate to the application in progress (such as a progress bar or a login prompt).

Official Android Dialog Documentation

1460 questions
-1
votes
2 answers

Android dialog is compressed

I am using a layout to show dialog. In my xml design it is perfect but when i open it in the app, it is scrambled.. Below are the screen shots: The xml file design: And the dialog in mobile: my xml code is:
Prakhar
  • 710
  • 6
  • 24
-1
votes
1 answer

Android - How to check for button click in a custom alert dialog box?

I've got two buttons: Share, Continue. Both of them are created in a new XML file because I wanted to keep my application with a nice flat Windows 8/10 looking GUI. I am able to display the dialog message, but the problem I am facing is, how can I…
BlazE
  • 81
  • 1
  • 16
-1
votes
2 answers

Is it possible to change outside color of alert dialog in android?

In my android application i am showing an alert dialog. I want to change outside color of alert dialog to black color. Please suggest me any one having the idea how can i achieve this. My code for showing alert dialog is: AlertDialog.Builder…
Raghu Mudem
  • 6,793
  • 13
  • 48
  • 69
-1
votes
1 answer

LayoutInflater and View, a weird thing

I have noticed a weird thing in Android. I can't use EditText functions like getText() - for example, when I type: final EditText txtUser = (EditText) inflater.inflate(R.layout.layout_dialog, null).findViewById(R.id.txtUsername); And when I…
zb22
  • 3,126
  • 3
  • 19
  • 34
-1
votes
2 answers

DialogFragment not showing complete layout

I am facing a weird issue with dialog fragment , its not showing the complete proper layout. I have checked on Moto G and Nexus 5 both show same result. Any help would be appreciated. Graphical layout screen shot is: Device screen shot is: Here is…
Ravi
  • 4,872
  • 8
  • 35
  • 46
-1
votes
1 answer

Dismissing dialog inside Asynctask triggered IllegalArgumentException

I've been using dialog for the Asynctask progress to show. By doing this, I initialized it inside onPreExecute and dismissed it in onPostExecute. I'm not sure what went wrong when I placed a condition to dismiss only if it's not null and it's…
-1
votes
1 answer

Cancel Dialogfragment click outside

I have a dialogfragment, which should dismiss, if i click outside of the dialog. I have no button or something else to close the dialog. But before the dismiss is calling, I want to check a field in my dialog. If the check is positive, then the…
user3621165
  • 212
  • 4
  • 16
-1
votes
3 answers

Custom Dialog Error

I am having a difficult time displaying a Custom Dialog. I have also attempted to create it in a custom class that extends Dialog. Dialog XML
GermaineJason
  • 589
  • 6
  • 15
-1
votes
6 answers

Dialog is not displaying textview & imageview

I am new to android world and am working on dialog and in that I am trying to create a text view, button and imageview, but it is neither showing me error nor textview or imageview. It is showing a button. Here is the image: . But i am want to…
Ashishsingh
  • 742
  • 2
  • 12
  • 31
-1
votes
1 answer

How to use Simple dialog in fragment?

In my application i have created a simple custom dialog. I have to call that in a fragment class.Dont know how to proceed can anyone help me with this? Is there any way that we can use simple dialog in fragment without going for Dialogfragment?
june
  • 999
  • 3
  • 14
  • 20
-1
votes
1 answer

Open a ListView onClick of EditText

I want show a ListView that will contain a list of cities.When the user click of the edit text.I want to open a dialog in that i want to show a ListView.As the user select the city i want to set that as the value of the edit text.And after selecting…
Pooja Dubey
  • 683
  • 2
  • 14
  • 34
-1
votes
2 answers

set a dialog, pressing ok and then send email

i'm not sure what is wrong with my code, i'm thinking it's relate to dialog.dismiss, but maybe i'm wrong... i'm trying to set a dialog and when the user press ok, an email will be sent to some email. here's the code: final Dialog dialog = new…
arvivlx2
  • 139
  • 1
  • 10
-1
votes
1 answer

Parentless Dialog Box

I'm trying to develop an application that transmit data over wifi. I want to create a dialog box that prompts users whether to accept data or not (just like the popup you get while receiving data via bluetooth). How is it possible ? If it is…
Ankit Popli
  • 2,809
  • 3
  • 37
  • 61
-1
votes
6 answers

Android Alert Dialog is not showing

I'm comparing the strings, if all are equal it has to show a dialog "ALL ARE EQUAL" else another dialog "NOT EQUAL". I want to use only OK button in Alert Dialog. And my code: if(s1.equals("yes") && s2.equals("yes") && s3.equals("yes") &&…
DroidLearner
  • 2,115
  • 5
  • 31
  • 50
-1
votes
3 answers

dialog and toasts are not showing from asynTask

Below is an async class i created that i am trying to implement a dialog on execute and a Toast on complete. How ever no toast or dialog are ever showing up. my asykTask: public class EmailPictureService extends HTTPRequestAsyncTask { Context…
erik
  • 4,946
  • 13
  • 70
  • 120