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 Dialogue box crashes App

I am making an activity that has to display a registration form as a dialogue box as soon as it starts. However, the activity always crashes. The following is the code for the activity: public class CheckInActivity extends…
Thanatos
  • 282
  • 5
  • 18
-1
votes
1 answer

Add Material Dialog from library

I want to use this from the material-dialog library without using the library in my build.gradle file. Is there a way to do that?
Zacktamondo
  • 1,891
  • 3
  • 17
  • 33
-1
votes
1 answer

creating android dialog fragment with custom image above it

Our design team came up with this idea... is it possible to create this loop arrow pointing to circle above dialog?
-1
votes
1 answer

take the activity content to dialog

I want to make a custom dialog in which I want to make call by yes Button and cancel the dialog by no button. But on the text view in dialog I want confirmation dialog saying "Call : number". I have taken this no from the user in main Activity and I…
Deepak
  • 1
  • 1
-1
votes
2 answers

How to change the list item color its clicked

How to change the list item color, when i click the list item it show the dialog box and i give some values in the dialog box it will be stored in the list item and also list item color need to changed
-1
votes
2 answers

Need help to remove the icon on progress bar

I managed to run it perfectly on 4.1.1, but on 6.0, it shows that dropdown icon. How to remove the spinning icon? EDITED: Here is the XML code for the progress bar on the current project
-1
votes
2 answers

CheckBox not staying at bottom of dialog

In my custom dialog, I am trying to get my checkbox to stay underneath my scrollview but it's not working. I've tried adding the checkbox under the scrollview in xml but it doesn't appear whenever I run the app. What needs to be done in order for…
wbk727
  • 8,017
  • 12
  • 61
  • 125
-1
votes
1 answer

I can't close softinput under certain condition

If I add the deley, it works.What's the reason? final AlertDialog dialog0 = new AlertDialog.Builder(this) .setTitle("0") .setView(view) .show(); new Handler().postDelayed(new Runnable() { …
tiny sunlight
  • 6,231
  • 3
  • 21
  • 42
-1
votes
1 answer

What is common practice when adding a new item, Dialog or Activity?

I am trying to build a simple list interface for a set of items. When adding a new item, the user needs to fill in multiple details for the item, pick from drop down menus, enter figures ect before it is then saved to the list. what is the…
What The Funk
  • 79
  • 3
  • 13
-1
votes
3 answers

Custom dialog / card in android

Is it possible to create custom dialog box / card in android, I am not exatctly sure what its called, so I haven't been able to find something of much use. I want to create a something along the lines of; and open this from my main activity when a…
Henry
  • 1,042
  • 2
  • 17
  • 47
-1
votes
2 answers

How to remove title from custom dialog?

I implemented a layout in order to be my custom dialog layout like this:
Sonhja
  • 8,230
  • 20
  • 73
  • 131
-1
votes
3 answers

Make Dialog occupy all screen space

I have an Android app that should show a fullscreen dialog. I've try different solution, but no one seems work. This is my code. Layout of dialog:
giozh
  • 9,868
  • 30
  • 102
  • 183
-1
votes
2 answers

Use full Width and Height of Screen to show Dialog

I am using Custom AlertDialog.Builder to show Image from SD Card into that alert dialog. How can I use full width and height of Screen to show dialog, here is my code: viewHolder.imageButtonView.setOnClickListener(new OnClickListener() { …
Sophie
  • 2,594
  • 10
  • 41
  • 75
-1
votes
2 answers

Access PrgressDialog from a different Activity

I have a MainActivity which loads a Fragment in it's oncreate Method and a Dialog to check for User's Input. This Fragment loads a WebView and a ProgressDialog in it's onPageStarted Method. The Problem is, now Those 2 Dialogs are overlapping each…
-1
votes
1 answer

Android creating dropdown list of states

Well, I'm creating app in which the user selects a brazilian state from a list (drop down list, picker, dialog or something like a list), but I'm not sure how to implement it. Is there such thing pre-build or will I have to implement? if so, any…
Nayana
  • 3
  • 2