Questions tagged [dismiss]

For questions related to calling the "dismiss" method in a button click listener.

By calling this method in a button click listener, the user can close a dialog and continue using the application.

633 questions
9
votes
4 answers

Dismiss AlertDialog.Builder from OnClick

I'm trying to make it so that a dialog pops up for users which has two buttons in the body and a cancel button at the bottom. When a user clicks one of the two buttons the dialog will disappear, and hitting cancel will just cancel out of the…
telkins
  • 10,440
  • 8
  • 52
  • 79
9
votes
3 answers

Android IllegalArgumentException for dismissDialog

I have used following code for download some files from our internet. public class SplashDownload extends Activity { public static final int PROGRESS_DIALOG = 0; private ProgressDialog mProgressDialog; private WordDataHelper…
dev_android
  • 8,698
  • 22
  • 91
  • 148
9
votes
2 answers

React Native Why does my keyboard dismiss instantly every time I tap on the textInput?

My keyboard always dismisses instantly when I tap on the textInput. This only happens on Android. It's strange that I've tried removing all irrelevant codes to textInput only, but the problem still exists. This only happens to one page of my app. …
Pang
  • 101
  • 1
  • 3
9
votes
3 answers

is there a way NOT to have the popover dismissed when pressing outside it?

I know the SDK documentation says Taps outside of the popover’s contents automatically dismiss the popover. But I'm sure the smart people here found a way :) maybe I should overwrite the popover dismiss function? Thanks EDIT: I tried using the…
Lior Frenkel
  • 806
  • 11
  • 25
9
votes
7 answers

Correct way of showing consecutive modalViews

I have two views that need to be shown modally, one after the other. This doesn't work if we dismiss and show consecutively, like this: [rootController dismissModalViewControllerAnimated: YES]; [rootController presentModalViewController: psvc…
Tiago Fael Matos
  • 2,077
  • 4
  • 20
  • 34
9
votes
3 answers

Override Dialog dismiss() with new AlphaAnimation

So right now by default the Dialog is doing this zoomin fade out effect when it gets dismissed with dialog.dismiss(); how can i override it to be my own Animation? AlphaAnimation fadeOut = new AlphaAnimation(1,…
NodeDad
  • 1,519
  • 2
  • 19
  • 48
9
votes
1 answer

how to detect if actionmode already present

I have several widgets in a view, each needing its own ActionMode. I see that the ActionMode does not dismiss automatically when the user taps outside the action bar. Thus, it is easily possible for the user to start an ActionMode for one control,…
Peri Hartman
  • 19,314
  • 18
  • 55
  • 101
8
votes
6 answers

How to dismiss a Dialog in Android by clicking it inside?

I have seen several posts on how to dismiss a dialog by clicking on the outside. But is there a way to get the same functionality by clicking the inside the dialog window? Are there any listeners for the Dialog that would detect a tap on the Dialog…
Ahmed Faisal
  • 4,397
  • 12
  • 45
  • 74
8
votes
2 answers

How to restrict AutoCompleteTextView dropdown dismiss?

I am working on a AutoCompleteTextView . I get some results when the users type in the AutoCompleteTextView and these are mandatory to select. But the problem is the drop down automatically dismisses when clicking on anywhere in the srceen. I want…
Syn3sthete
  • 4,151
  • 3
  • 23
  • 41
7
votes
2 answers

How to Dismiss a UIPIckerView once the user has selected their choice

I have my UIPickerView hooked into a UITextField's inputView. I have it popping up. I know when the user selects a row. I know the value for the row. All that is great. My question deals with when to dismiss the picker. I've seen people marry…
Userdano
  • 81
  • 1
  • 5
7
votes
2 answers

UIAlertView disappears when app goes to background and come back to foreground

I am developing an iPhone application (iPhone with multi tasking support) in which I am displaying UIAlertView on error. When UIAlertView is about to get display my app is sent to background. Now, if I try to get my app in the foreground,…
spd
  • 2,114
  • 1
  • 29
  • 54
7
votes
4 answers

java.lang.IllegalArgumentException - dialog.dismiss

I am getting this error in my published application, only clients receive this error. I already tried several times to replicate the same mistake however unsuccessfully. I also already tried to use the below code at all locations where there is a…
tiagosito
  • 111
  • 2
  • 11
7
votes
6 answers

ResignFirstResponder doesn't dismiss the keyboard (iPhone)

I've searched through this site that I couldn't find a solution to the problem I'm facing now. Hope someone can help. I've created a UIAlertView to prompt user to enter their name in an iPhone app. UIAlertView *enterNameAlert = [[UIAlertView…
Anthony
  • 747
  • 1
  • 8
  • 23
7
votes
6 answers

How do i make my progress dialog dismiss after webview is loaded?

What do I need to my code to make the dialog dismiss() after the webview is loaded? public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); …
brybam
  • 5,009
  • 12
  • 51
  • 93
7
votes
3 answers

Android swipe layout to dismiss

I'm trying to make a swipeable layout so you can swipe it to dismiss like in Google now. I managed to getting it worked on a view such as button using this codes: SwipeDismissTouchListener: public class SwipeDismissTouchListener implements…
user3068269
  • 137
  • 1
  • 13
1 2
3
42 43