Questions tagged [material-dialog]
53 questions
10
votes
4 answers
Adjust androidx.preference dialogs to follow Material You
I have two apps containing a preference section, and i'm using the preference library, the latest version available at the time of writing:
implementation "androidx.preference:preference:1.2.0-rc01"
Now, i themed my app to use and follow the…

m.i.n.a.r.
- 922
- 2
- 12
- 28
8
votes
2 answers
MaterialAlertDialogBuilder crashes on custom view editText
The AlertDialog(Material) crashes when tries to read the editText content.
The AlertDialog:
MaterialAlertDialogBuilder(activity)
.setTitle(title)
.setMessage(message)
.setView(R.layout.dialog_settings_entry)
…

Faisal
- 1,332
- 2
- 13
- 29
7
votes
3 answers
How to close a mat dialog without a backdrop on clicking outside?
How Can I close the dialog in this stackblitz example (Minimal, Reproducible Example.) by clicking outside ?
This works fine if I remove the property hasBackdrop: false -> Working Stackblitz Example

dota2pro
- 7,220
- 7
- 44
- 79
6
votes
2 answers
Make Angular dialog draggable only by title
I've already done this:
But the solution causes the dialog to be draggable by clicking any place of the window which makes impossible to…

Supervision
- 1,683
- 1
- 18
- 23
5
votes
1 answer
MatDialog stopped working after updating Angular to version 9
I had an angular project which I upgraded from 7.2 to 9 following the https://update.angular.io/#7.2:9.0
Post upgrade everything except MatDialog is working. Opening the dialog shows an empty popup of disproportionate size with the following error…

Shekhar Sahu
- 504
- 1
- 6
- 19
4
votes
2 answers
How to close an Android Material Alert Dialog Programatically?
I have a dialog that appears whenever some background process is going on and displays a loading ProgressBar. I am however unable to dismiss it as the dismiss() function does not work. In my code below in the hideLoading() function is supposed to…

Biko
- 332
- 3
- 15
3
votes
1 answer
close material dialog from different component angular
I have component A which openes material dialog
component A
openDialog(): void {
const dialogRef = this.dialog.open(**component B**, {
width: '1000px',
});
then I use to load image in that dialog and with button upload I upload it…

David
- 4,332
- 13
- 54
- 93
2
votes
1 answer
Angular Material -make the matsnackbar above all dialogs
I have a Warning mat-snackbar And I have a dialog.
my problem is that the dialog appears above the mat-snackbar and hides it.
Because the wrapping div uses the same material class And material make the last dialog above the others
To use…

Manachem Martinov
- 80
- 6
2
votes
0 answers
How to change Android DatePicker month navigation chevron/arrow color
I am using the DateTimePicker component of the Material Dialog library. I want to change the color of the left arrow "<" and also the text color of the future day number (Marked in red color in the attached image). I am able to update TimePicker but…

Bipin Vayalu
- 3,025
- 2
- 25
- 39
2
votes
0 answers
mat chip list inside a dialog window in Angular?
Then when user types in some data, the related dessert list data fetched from DB should be displayed in pre-populated mat-chips list format as follows:(may be if this is not possible, we can display a dropdown of prepopulated available desserts…

bts_dev
- 83
- 1
- 7
2
votes
0 answers
Java - MaterialDialog - how to add clear button on edittext programmatically
I want to add programmatically cross button right side of edit text.
The idea is create a dialog like this one How to add clear button to TextField Widget. that problem is solved in Flutter, i?ve the same problem but in Java
name =…

DoctorWho
- 1,044
- 11
- 34
2
votes
0 answers
Angular 8: How can i pass the updated parent data to Mat Dialog after updating both dialog data and parent data without closing dialog?
How can i pass the updated parent data to Mat Dialog after updating both dialog data and parent data without closing dialog?
Is any there any with event emitter?
I dont want to close the dialog. As to pass data i could have used mat closed function…

S.H
- 119
- 3
- 13
2
votes
1 answer
Android align center or align right title and message in MaterialDialog
i use MaterialDialog version 3.1.1 in this address.
i want align right or center title and message in dialog but can't find how to do this in doc.
i check this page https://github.com/afollestad/material-dialogs/issues/434 and somebody use…

peyman
- 143
- 1
- 9
1
vote
0 answers
Angular Material Dialog with Google Places Autocomplete dropdown positioning
I have a web page that uses the Angular framework and therefore the Materials UI library. I have a dialog with a form that uses the Google Places Autocomplete functionality, but the positioning of it stays constant when scrolling through the dialog.…

ScienceLuke7
- 21
- 4
1
vote
1 answer
Paginator in material angular doesn't work with rows added via dialog
I'm trying to populate a table with a mat dialog and to use pagination after 5 added rows.
Adding the data from the dialog works, but I cannot make the paginator work.
I tried a lot of tutorial, but they only use static data or data loaded from…

Rita Piscopo
- 39
- 1
- 4