File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
![ ] ( https://github.com/TutorialsAndroid/KAlertDialog/blob/master/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png )
2
2
3
- # New version released v20.0 .0 on 12 -10-2022
3
+ # New version released v20.1 .0 on 13 -10-2022
4
4
## Changelogs
5
5
- Auto dark mode
6
6
- New Input field dialog
@@ -37,6 +37,7 @@ AlertDialog for Android, a beautiful and material alert dialog to use in your an
37
37
38
38
## Features
39
39
- Materialistic alert dialog
40
+ - Auto dark mode
40
41
- Change font style
41
42
- Change text color
42
43
- Change button color and background
@@ -66,7 +67,7 @@ Add it in your root build.gradle at the end of repositories:
66
67
Step 2. Add the dependency
67
68
68
69
dependencies {
69
- implementation 'com.github.TutorialsAndroid:KAlertDialog:v20.0 .0'
70
+ implementation 'com.github.TutorialsAndroid:KAlertDialog:v20.1 .0'
70
71
}
71
72
72
73
## Usage
@@ -161,6 +162,15 @@ A message with a custom icon:
161
162
.setCustomImage(R.drawable.custom_img)
162
163
.show();
163
164
165
+ A message with a custom vector drawable with tint option in dark mode:
166
+
167
+ new KAlertDialog(this, KAlertDialog.CUSTOM_IMAGE_TYPE)
168
+ .setTitleText("Sweet!")
169
+ .setContentText("Here's a custom image.")
170
+ .setCustomImage(R.drawable.vector_drawable)
171
+ .setDrawableTintOnNightMode(true, R.color.red) //it will work only if your app is running in night mode
172
+ .show();
173
+
164
174
A message with a custom image URL
165
175
166
176
![ ] ( https://github.com/TutorialsAndroid/KAlertDialog/blob/master/art/photo_2022-10-12_19-42-12.png )
You can’t perform that action at this time.
0 commit comments