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 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:
6667Step 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+
164174A message with a custom image URL
165175
166176![ ] ( 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