Skip to content

Commit 4c10165

Browse files
Updated README
1 parent b2f1137 commit 4c10165

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![](https://github.com/TutorialsAndroid/KAlertDialog/blob/master/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png)
22

3-
# New version released v20.0.0 on 12-10-2022
3+
# New version released v20.1.0 on 13-10-2022
44
## Changelogs
55
- Auto dark mode
66
- New Input field dialog
@@ -37,6 +37,7 @@ AlertDialog for Android, a beautiful and material alert dialog to use in your an
3737

3838
## Features
3939
- Materialistic alert dialog
40+
- Auto dark mode
4041
- Change font style
4142
- Change text color
4243
- Change button color and background
@@ -66,7 +67,7 @@ Add it in your root build.gradle at the end of repositories:
6667
Step 2. Add the dependency
6768

6869
dependencies {
69-
implementation 'com.github.TutorialsAndroid:KAlertDialog:v20.0.0'
70+
implementation 'com.github.TutorialsAndroid:KAlertDialog:v20.1.0'
7071
}
7172

7273
## Usage
@@ -161,6 +162,15 @@ A message with a custom icon:
161162
.setCustomImage(R.drawable.custom_img)
162163
.show();
163164

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+
164174
A message with a custom image URL
165175

166176
![](https://github.com/TutorialsAndroid/KAlertDialog/blob/master/art/photo_2022-10-12_19-42-12.png)

0 commit comments

Comments
 (0)