Questions tagged [customdialog]
338 questions
-1
votes
2 answers
Android - entries in dialog should be deleted when dialog is closed
I have a customDialog with input fields. I want possible entries to be removed once the dialog is closed (either via back or when a certain button is pressed), i.e. the state should not be saved.
How can I do that?

deimos1988
- 5,896
- 7
- 41
- 57
-1
votes
1 answer
How to set the automatic start positioning of a custom dialog like a standard dialog box in wpf?
For example, sample button is located at the top right corner of the monitor and button is cut off because it is outside the window.
In this state, press the button to call OpenFileDialog.ShowDialog().
Then, OpenFileDialog is automatically created…

wddfrwd
- 53
- 4
-1
votes
1 answer
How to create a dialog with three custom buttons to choose?
I am trying to create a dialog like this but only with three clickable colored Buttons
When you click on a color the dialog goes away and the choosen button appears on the main screen
I currently have only three xml files for the different buttons…

Cicciopasticcio
- 195
- 1
- 2
- 8
-1
votes
1 answer
ExpandableListView object null when used inside custom alert dialog
I am creating an sample application in which I am opening a custom alert dialog on click of a button. The custom dialog which contains a custom expandable list.
In activity_main.xml, I added a button.
-1
votes
4 answers
How to modify Text and click Listener while using custom Dialog Class?
I have a dialog class with a custom layout. Now I want to change the text value and different on button click listener from different Activities. I am trying to do that But getting error. Here is my source code. Any help or suggestion will be very…

Ravi
- 319
- 4
- 13
-1
votes
2 answers
App crashes while passing Intent
I have a custom dialog activity which asks user to enter OTP. I then do the normal working of OTP process by checking if it was correct and so on.
Now when i am done with it, i want to open the next activity which i am not able to open.
My code for…

Kunal Parikh
- 463
- 4
- 15
-1
votes
1 answer
Button is not working inside custom dialog which is appeared after long press of a button
I have opened a custom dialog inside longPress of a button,
Inside that custom dialog i have two buttons and one edit text. I want to change the name of the button which i have longpressed with the name which i get from the edit text inside the…

Shahryar
- 324
- 1
- 3
- 17
-1
votes
1 answer
Custom Dialog with Triangle outside dialog border at Top-right corner
I have requirement of displaying custom dialog with Arrow shape at the top-right corner of the dialog. I google out for that and as a result I got the same but, its POPUP window not a DIALOG.
Since, I have to disable background behind dialog when…

ZaptechDev Kumar
- 164
- 1
- 14
-1
votes
3 answers
Check if edittext is empty or not on custom dialog
I have taken a custom dialog with edittext on it to enter OTP. I have check whether OTP entered is correct or not. I also want to show toast message if no OTP is entered in edittext but the dialog opened should remain opened. Below is my…

Abhilash Harsole
- 244
- 2
- 4
- 15
-1
votes
1 answer
Nullpointerexception after press dialog button android
I have a custom dialog inside a fragment, the problem its that a cant programm the button, each time that i programm the button and i run the programm i get nullpointerexception error, could someone helpme please, here its the code:
class which call…

Gaston De la Cruz Bayugar
- 77
- 1
- 8
-1
votes
1 answer
How to get listview from parse to a custom dialog?
I am creating a dialog that shows a list of profiles to pick from.
The way I'm doing this is using a listview and the content of the listview will be taken from parse. I have been having problem getting the listview to work. I tried using an…

stanley santoso
- 343
- 1
- 6
- 19
-1
votes
1 answer
Getting java.lang.NullPointerException on customDialogBox
I am getting java.lang.NullPointerException for this method. I have check the adapter and lists are just fine and the list is ofcourse under fragment_phonelist xml file.
private void showCustomDialog() {
final Dialog dialog = new…

Asad
- 1,260
- 13
- 19
-1
votes
1 answer
Create custom dialog while app running first time in Android
MainActivity Class, exit button click event:
public void onClick(View v) {
CustomDialog cd = new CustomDialog();
dialog = new Dialog(this);
cd.runConfirmationDialog(dialog, R.layout.custommessage,
R.id.d_tittle, "Exit",…

egente
- 3
- 5
-1
votes
1 answer
Can someone tell me why this Android Code doesn't work?
I am trying to make a custom listview with Textview and checkbox the list will be made such that the user adds an item to the list by writing it on a custom dialog box.
My code is as follows:
package ayush.lists;
import…

Ayush Bhattacharya
- 25
- 1
- 5
-1
votes
1 answer
Unable to show animated dialog using Asynctask in android
I am trying to show custom animated dialog in android using AsyncTask, but i am getting now some issue in log-cat which is given below.
Can anyone tell me how to solve this issue?
LOGCAT
06-20 09:42:47.981: E/AndroidRuntime(668): FATAL EXCEPTION:…

prabu
- 717
- 3
- 12
- 30