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
1 answer

Android dialog showing stages of progress with a cancel

Is it possible to create a custom dialog on Android depicting stages, like three images, as each stage is achieved, the image changes color, until all images change color and the dialog closes. I also want an opportunity for a user to cancel via a…
lcj
  • 1,355
  • 16
  • 37
-1
votes
1 answer

Unable to remove white space at the end of Android layout file in a custom dialog view

I am trying to load a custom view of my dialog in my activity. I want to remove the white space to the right of the dialog. My activity public class MyActivity extends AppCompatActivity { @Override protected void onCreate(final Bundle…
Kartik
  • 2,541
  • 2
  • 37
  • 59
-1
votes
1 answer

Secret Dialog box

I'm working on an android app , we need a custom dialog box to input some settings once in a while . This custom dialog box need to be hard to find so only some users can find it , like a onLongClick somewhere . Any Ideas ?
Ahmed Wannén
  • 31
  • 1
  • 5
-1
votes
1 answer

How to resolve findViewByID() returning Null after setContentView()

I have a Button element in a Layout file, add_site_bottom_sheet.xml with the id @+id/add_site_sheet_add_site_button. In my SitesActivity.java, in onCreate(), I call buildAddSiteSheet(). In this method, I create an instance of a BottomSheetDialog,…
whiteside0013
  • 33
  • 1
  • 8
-1
votes
1 answer

how to call setAction in dialog?

i want to create add data to SQL lite with pop up dialog, in dialog just have one textedit and buttom save. in Snackbar usually use setAction(). but in dialog I don't know how to call "AddData". @Override public View…
-1
votes
1 answer

Android New Version Available - App Update Dialog Using Json From Own Server

I want to show dialogue when new version is available. I want to make a json file into my web server, and I will manually update my app version in json file. and my app will parse this json file and will notify users and showing dialogue box to…
-1
votes
2 answers

Create a Dialog Box from a View

I have a view defined as "public class ChessBoard extends View" in this class in one of the code flows I want to popup a Dialog box and then get a result from that dialog box. I have tried the answer here: How to create a Custom Dialog box in…
Peter Chikov
  • 172
  • 3
  • 16
-1
votes
1 answer

AlertDialog inside checkbox in Android Studio

I am new to Android Studio. I want to create an AlertDialog, which contains a simple TextView, that appears at every lap of time (e.g. 5 min) inside the checkbox, so if the checkbox is clicked, the AlertDialog appears every 5 min. If it's not…
-1
votes
1 answer

Android Input View (Dialog?)

I want to show an input dialog exactly like this: On the android dev page I couldn't find a fitting dialog type? (Alerts, simple dialogs and confirmation dialogs) I would appreciate it if someone could explain which component this is.
Solenya
  • 694
  • 6
  • 21
-1
votes
1 answer

How to use custom dialog in DialogFragment?

In my application I want use custom dialog into DialogFragment . I can use AlertDialog into DialogFragment but I want use custom dialog instead of AlertDialog. I write below codes into DialogFragment : @Override public Dialog onCreateDialog(Bundle…
RedBounce
  • 213
  • 5
  • 14
-1
votes
1 answer

How to fix Unable to add window when use Dialog in Android

In my application I want use dialog and for this I should set custom view to dialog. I write below codes, but when running application show me ForceClose error on LogCat. My Codes : if (!isPremium) { count =…
RedBounce
  • 213
  • 5
  • 14
-1
votes
1 answer

recyclerview smoothscroll not working on dialog

my application flow: stockerFragment: input barcode with barcode scanner if barcode already scanned before, scrollsmooth to the existing barcode and show dialog modal to edit quantity. when user hit enter after editing the quantity in dialog modal,…
Kakashi
  • 3,329
  • 4
  • 26
  • 37
-1
votes
1 answer

How to customize default buttons of AlertDialog?

The problem is, I'm having an AlertDialog, in which I inflate my custom layout by this: AlertDialog.Builder mBuilder = new AlertDialog.Builder(getActivity()); View mView = getLayoutInflater().inflate(R.layout.exp_add,…
V. Dalechyn
  • 314
  • 1
  • 10
-1
votes
1 answer

How to add an item to a listview via custom dialog?

I created a custom dialog box android activity in a separate class. The dialog box has a button which adds an item to listview whenever it is clicked. The list view is declared in the base activity.
-1
votes
1 answer

check items programmatically in setMultiChoiceItems in android dialog

I am using a checked ListView in a dialog. I am able to get all the checked items ans store it like this: builder.setMultiChoiceItems(arr, null, new DialogInterface.OnMultiChoiceClickListener() { // indexSelected contains the…
3iL
  • 2,146
  • 2
  • 23
  • 47