@@ -44,7 +44,7 @@ dependencies {
44
44
45
45
Here's a very basic example of creating and showing a dialog:
46
46
47
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/basic.png " width =" 250px " />
47
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/basic.png " width =" 250px " />
48
48
49
49
``` kotlin
50
50
MaterialDialog (this ).show {
@@ -99,7 +99,7 @@ MaterialDialog(this).show {
99
99
100
100
There are simple methods for adding action buttons:
101
101
102
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/basic_with_buttons.png " width =" 250px " />
102
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/basic_with_buttons.png " width =" 250px " />
103
103
104
104
``` kotlin
105
105
MaterialDialog (this ).show {
@@ -135,13 +135,13 @@ MaterialDialog(this).show {
135
135
If action buttons together are too long to fit in the dialog's width, they will be automatically
136
136
stacked:
137
137
138
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/stacked_buttons.png " width =" 250px " />
138
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/stacked_buttons.png " width =" 250px " />
139
139
140
140
## Adding an Icon
141
141
142
142
You can display an icon to the left of the title:
143
143
144
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/icon.png " width =" 250px " />
144
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/icon.png " width =" 250px " />
145
145
146
146
``` kotlin
147
147
MaterialDialog (this ).show {
@@ -198,7 +198,7 @@ MaterialDialog(this).show {
198
198
199
199
You can show lists using the ` listItems ` extension on ` MaterialDialog ` :
200
200
201
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/basic_list.png " width =" 250px " />
201
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/basic_list.png " width =" 250px " />
202
202
203
203
``` kotlin
204
204
MaterialDialog (this ).show {
@@ -231,7 +231,7 @@ MaterialDialog(this).show {
231
231
You can show single choice (radio button) lists using the ` listItemsSingleChoice ` extension
232
232
on ` MaterialDialog ` :
233
233
234
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/single_choice_list.png " width =" 250px " />
234
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/single_choice_list.png " width =" 250px " />
235
235
236
236
``` kotlin
237
237
MaterialDialog (this ).show {
@@ -314,7 +314,7 @@ val checked: Boolean = dialog.isItemChecked(index)
314
314
315
315
You can show multiple choice (checkbox) lists using the ` listItemsMultiChoice ` extension on ` MaterialDialog ` :
316
316
317
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/multi_choice_list.png " width =" 250px " />
317
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/multi_choice_list.png " width =" 250px " />
318
318
319
319
``` kotlin
320
320
MaterialDialog (this ).show {
@@ -437,7 +437,7 @@ val recyclerView: RecyclerView = dialog.getRecyclerView()
437
437
Checkbox prompts can be used together with any other dialog type, it gets shown in the same view
438
438
which shows the action buttons.
439
439
440
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/checkbox_prompt.png " width =" 250px " />
440
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/checkbox_prompt.png " width =" 250px " />
441
441
442
442
``` kotlin
443
443
MaterialDialog (this ).show {
@@ -482,7 +482,7 @@ MaterialDialog(this).show {
482
482
A lot of the included extensions use custom views, such as the color chooser dialog. There's also
483
483
a simple example in the sample project.
484
484
485
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/custom_view.png " width =" 250px " />
485
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/custom_view.png " width =" 250px " />
486
486
487
487
``` kotlin
488
488
MaterialDialog (this ).show {
@@ -543,7 +543,7 @@ change fonts, corner rounding, etc.
543
543
Light and dark theming is automatic based on your app's theme (basically whether ` android:textColorPrimary `
544
544
is more light or more dark):
545
545
546
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/lightanddarkthemes.png " width =" 500px " />
546
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/lightanddarkthemes.png " width =" 500px " />
547
547
548
548
### Background Color
549
549
@@ -561,7 +561,7 @@ theme for the ripple color of list items, buttons, etc. by default. You can over
561
561
562
562
Corner radius is the rounding of dialog corners:
563
563
564
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/customtheme.png " width =" 250px " />
564
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/customtheme.png " width =" 250px " />
565
565
566
566
it can be changed with an attribute in your app theme. It defaults to 4dp:
567
567
@@ -618,4 +618,4 @@ using attributes in your app's theme.
618
618
619
619
See the "Custom Theme" example in the sample project (open the overflow menu for the theme switcher).
620
620
621
- <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/master /art/customtheme.png " width =" 250px " />
621
+ <img src =" https://raw.githubusercontent.com/afollestad/material-dialogs/main /art/customtheme.png " width =" 250px " />
0 commit comments