Questions tagged [customdialog]

338 questions
3
votes
2 answers

My own AppcompatDialog generates a really ugly shadow/elevation

I tried to create my own custom loading dialog on android. That was no problem, but the dialog creates a really ugly shadow when it appears I tried to use a default color theming my android and not my own. And i tried to set a transparent windows…
3
votes
2 answers

why Android dialog title not showing on android versions marshmallow?

I was trying to create a custom dialog here is my code : val myDialog = Dialog(this) myDialog.setContentView(R.layout.my_dialog) myDialog.setTitle("My Dialog!") myDialog.setCancelable(true) …
Jazz
  • 214
  • 2
  • 10
3
votes
1 answer

Get Reference of Dialog in onClick

I am creating a Custom Dialog on click of a button in my activity. There is button in the Dialog and I have set it like this: Button buttonTakePicture = (Button)dialog.findViewById(R.id.buttonTakePicture); …
schinj
  • 794
  • 4
  • 19
3
votes
2 answers

How to show custom Dialog in an Activity?

As above. I have got custom Dialog (which I suppose should be extended by different class...) public class ResetPasswordDialog extends DialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { View v =…
y07k2
  • 1,898
  • 4
  • 20
  • 36
3
votes
1 answer

Custom Dialog gives white space at topside in android

i am working on an app , i have implemented a custom dialog for confirmation purpose,I have created a custom layout for the dialog, but it comes with white space at top side, Can someone help me to remove it? xml
sulphuric Acid
  • 585
  • 6
  • 23
3
votes
0 answers

Progress Dialog causing Virtual Keyboard to not show on WebView

I have a weirb bug that is pissing me off. I have an app that is pretty much only a webview with some extra functionalities, one of them is a Custom Loading Dialog (Extended from the progress dialog) that I show on the onPageStarted call, and…
paulonogueira
  • 2,684
  • 2
  • 18
  • 31
3
votes
2 answers

Creating a custom dialog box like this in iOS?

I'm trying to create a dialog box like this, but have failed in every attempt. This box overrides the rest of the content, has two textField and a choice box. Could someone help me? I use a dynamic programming to create the dialog box? or I use a…
user5046034
3
votes
2 answers

Custom Dialog - You must call removeView() on the child's parent first

I'm using a custom AlertDialog for my project and, when i try to show it the second time it tells me java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. In onCreate of my…
Luca
  • 823
  • 4
  • 11
  • 31
3
votes
5 answers

custom dialog not coming properly

In my app, I tried to make custom dialog so I wrote an XML for that and In my XML its appearing like this, dialog.xml,
Android
  • 183
  • 1
  • 13
3
votes
2 answers

Android - Confirm Dialog when changing the preference

can anyone suggest me a way to perform AlertDialog to confirm the changes when change the CheckboxPreference or SwitchPrerence, ex. if i want to Uncheck the Preference the AlertDialog should warn them like "Are you sure want to uncheck?" plus the…
Kirk
  • 4,957
  • 2
  • 32
  • 59
3
votes
1 answer

Android : how Custom Dialog returns intent result to parent activity

In my mainactivity class, on clicking a button, it displays a dialog that shows, "capture a photo", "capture a video", pick from gallery" buttons upon clicking any of those button it has to do the respective action and return the path of file to…
ss45
  • 47
  • 1
  • 9
3
votes
0 answers

Custom Dialog Boxes to show image, text and setTitle

I have a little glitch in my program I've been trying to figure out what it is I'm missing. In my .java file, I have a gridview of images where I setOnItemsClickListener on items in the gridview. I have 2 xml files, one for the .java and the other…
3
votes
2 answers

How can I create positive and negative buttons at custom dialogs

I want to create a custom dialog. So i create a template 'dialog_change' and I open the dialog. Dialog myDialog = new Dialog(Overview.this); myDialog.setContentView(R.layout.dialog_change); myDialog.setTitle("My Custom Dialog…
David
  • 4,027
  • 10
  • 50
  • 102
3
votes
1 answer

Unable to Interact with Android Custom Dialog

Ok, bear with me because I haven't worked with custom Dialogs (or Android programming at all really) that much, and I'm sure I've made a stupid beginner mistake. So I have a simple dice rolling app that I'm trying to incorporate into my existing…
3
votes
1 answer

ListView in a custom dialog pushes buttons off the screen

I am using my own subclass of Dialog and trying to build it in such a way that if there is not enough content to fill the screen, it will shrink to fit the content (i.e. wrap_content). I can do this with the following layout:
Dean Harding
  • 71,468
  • 13
  • 145
  • 180
1 2
3
22 23