Skip to content

Commit 42a638b

Browse files
New Version v20.2.1
1 parent 1a5cf32 commit 42a638b

File tree

40 files changed

+15480
-3211
lines changed

40 files changed

+15480
-3211
lines changed
Binary file not shown.
Binary file not shown.

.gradle/7.4/fileHashes/fileHashes.bin

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
102 Bytes
Binary file not shown.
Binary file not shown.

.gradle/file-system.probe

0 Bytes
Binary file not shown.

.idea/workspace.xml

-130
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
![](https://github.com/TutorialsAndroid/KAlertDialog/blob/master/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png)
22

3-
# New version released v20.2.0 on 14-10-2022
3+
# New version released v20.2.1 on 18-10-2022
44
## Changelogs
5-
- Added option to change button text color
6-
- Added option to tint vector drawable in dark mode
5+
- Fixed issue in button not changing color in NORMAL_TYPE dialog
76
### Read the changes in README
87

98
Alert Dialog ![API](https://img.shields.io/badge/API-19%2B-brightgreen.svg?style=flat) [![Known Vulnerabilities](https://snyk.io/test/github/TutorialsAndroid/KAlertDialog/badge.svg?targetFile=library%2Fbuild.gradle)](https://snyk.io/test/github/TutorialsAndroid/KAlertDialog?targetFile=library%2Fbuild.gradle) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-KAlertDiaog-blue.svg?style=flat)](https://android-arsenal.com/details/1/7588) [![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/licenses/Apache-2.0)
@@ -68,7 +67,7 @@ Add it in your root build.gradle at the end of repositories:
6867
Step 2. Add the dependency
6968

7069
dependencies {
71-
implementation 'com.github.TutorialsAndroid:KAlertDialog:v20.2.0'
70+
implementation 'com.github.TutorialsAndroid:KAlertDialog:v20.2.1'
7271
}
7372

7473
## Usage
Binary file not shown.

library/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Fri Oct 14 12:06:10 IST 2022
1+
#Sun Oct 16 12:47:44 IST 2022
22
com.developer.kalert.library-pngs-0\:/drawable-xxhdpi/ic_success_tick.png=D\:\\Projects\\AndroidLibraries\\KAlertDialog-master\\library\\build\\intermediates\\packaged_res\\debug\\drawable-xxhdpi-v4\\ic_success_tick.png
33
com.developer.kalert.library-main-7\:/layout/alert_dialog.xml=D\:\\Projects\\AndroidLibraries\\KAlertDialog-master\\library\\build\\intermediates\\packaged_res\\debug\\layout\\alert_dialog.xml
44
com.developer.kalert.library-main-7\:/drawable/success_circle.xml=D\:\\Projects\\AndroidLibraries\\KAlertDialog-master\\library\\build\\intermediates\\packaged_res\\debug\\drawable\\success_circle.xml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<style name="dialog_blue_button" parent="android:Widget.Button">
4+
<item name="android:layout_width">wrap_content</item>
5+
<item name="android:layout_height">32dp</item>
6+
<item name="android:background">@drawable/button_background</item>
7+
<item name="android:textSize">16sp</item>
8+
<item name="android:paddingLeft">21dp</item>
9+
<item name="android:paddingRight">21dp</item>
10+
</style>
11+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<attr format="color|reference" name="alertDialogContentTextColor"/>
4+
<attr format="reference" name="alertDialogDark"/>
5+
<attr format="color|reference" name="alertDialogInputFieldHintColor"/>
6+
<attr format="color|reference" name="alertDialogProgressColor"/>
7+
<attr format="color|reference" name="alertDialogTextColor"/>
8+
<color name="blue_btn_bg_color">#AEDEF4</color>
9+
<color name="blue_btn_bg_pressed_color">#96BFD2</color>
10+
<color name="button_text_color">#FFFFFF</color>
11+
<color name="error_stroke_color">#F27474</color>
12+
<color name="float_transparent">#00000000</color>
13+
<color name="gray_btn_bg_color">#D0D0D0</color>
14+
<color name="gray_btn_bg_pressed_color">#B6B6B6</color>
15+
<color name="kalert_dialog_bg_color">#FFFFFF</color>
16+
<color name="material_blue_grey_80">#ff37474f</color>
17+
<color name="material_blue_grey_90">#ff263238</color>
18+
<color name="material_blue_grey_95">#ff21272b</color>
19+
<color name="material_deep_teal_20">#ff80cbc4</color>
20+
<color name="material_deep_teal_50">#ff009688</color>
21+
<color name="red_btn_bg_color">#DD6B55</color>
22+
<color name="red_btn_bg_pressed_color">#CD5B55</color>
23+
<color name="success_stroke_color">#A5DC86</color>
24+
<color name="text_color">#575757</color>
25+
<color name="trans_success_stroke_color">#33A5DC86</color>
26+
<color name="warning_stroke_color">#F8BB86</color>
27+
<dimen name="alert_width">290dp</dimen>
28+
<dimen name="common_circle_width">3dp</dimen>
29+
<dimen name="progress_circle_radius">34dp</dimen>
30+
<string name="LOADING">Loading…</string>
31+
<string name="app_name">KAlertDialog</string>
32+
<string name="dialog_cancel">Cancel</string>
33+
<string name="dialog_default_title">Here\'s a message!</string>
34+
<string name="dialog_ok">OK</string>
35+
<style name="alert_dialog_dark" parent="alert_dialog_light">
36+
<item name="android:backgroundDimAmount">0.8</item>
37+
<item name="alertDialogDark">@drawable/dialogdark</item>
38+
<item name="alertDialogTextColor">@android:color/white</item>
39+
<item name="alertDialogContentTextColor">@android:color/white</item>
40+
<item name="alertDialogProgressColor">@android:color/white</item>
41+
<item name="alertDialogInputFieldHintColor">@android:color/white</item>
42+
43+
</style>
44+
<style name="alert_dialog_light" parent="android:Theme.Dialog">
45+
<item name="android:windowIsFloating">true</item>
46+
<item name="android:windowIsTranslucent">false</item>
47+
<item name="android:windowNoTitle">true</item>
48+
<item name="android:windowFullscreen">false</item>
49+
<item name="android:windowBackground">@color/float_transparent</item>
50+
<item name="android:windowAnimationStyle">@null</item>
51+
<item name="android:backgroundDimEnabled">true</item>
52+
<item name="android:backgroundDimAmount">0.4</item>
53+
54+
<item name="alertDialogDark">@drawable/dialoglight</item>
55+
<item name="alertDialogTextColor">@android:color/black</item>
56+
<item name="alertDialogContentTextColor">@android:color/black</item>
57+
<item name="alertDialogProgressColor">@android:color/black</item>
58+
<item name="alertDialogInputFieldHintColor">@android:color/black</item>
59+
</style>
60+
<style name="dialog_blue_button" parent="android:Widget.Button">
61+
<item name="android:layout_width">wrap_content</item>
62+
<item name="android:layout_height">32dp</item>
63+
<item name="android:background">@drawable/button_background</item>
64+
<item name="android:textSize">14sp</item>
65+
<item name="android:paddingLeft">21dp</item>
66+
<item name="android:paddingRight">21dp</item>
67+
</style>
68+
<declare-styleable name="Rotate3dAnimation">
69+
<attr format="enum" name="rollType">
70+
<enum name="x" value="0"/>
71+
<enum name="y" value="1"/>
72+
<enum name="z" value="2"/>
73+
</attr>
74+
<attr format="float" name="fromDeg"/>
75+
<attr format="float" name="toDeg"/>
76+
<attr format="fraction" name="pivotX"/>
77+
<attr format="fraction" name="pivotY"/>
78+
</declare-styleable>
79+
</resources>
Binary file not shown.

library/src/main/java/com/developer/kalert/KAlertDialog.java

+3
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ private void changeAlertType(int alertType, boolean fromCreate) {
222222
restore();
223223
}
224224
switch (mAlertType) {
225+
case NORMAL_TYPE:
226+
setConfirmButtonColor(mColor);
227+
break;
225228
case ERROR_TYPE:
226229
mErrorFrame.setVisibility(View.VISIBLE);
227230
setConfirmButtonColor(mColor);
Binary file not shown.
Binary file not shown.

sample/build/intermediates/incremental/debug/mergeDebugResources/compile-file-map.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Fri Oct 14 12:06:21 IST 2022
1+
#Sun Oct 16 12:47:46 IST 2022
22
com.developer.kalert.alert.sample-main-34\:/mipmap-xxxhdpi/ic_launcher.png=D\:\\Projects\\AndroidLibraries\\KAlertDialog-master\\sample\\build\\intermediates\\merged_res\\debug\\mipmap-xxxhdpi_ic_launcher.png.flat
33
com.developer.kalert.alert.sample-main-34\:/mipmap-hdpi/ic_launcher.png=D\:\\Projects\\AndroidLibraries\\KAlertDialog-master\\sample\\build\\intermediates\\merged_res\\debug\\mipmap-hdpi_ic_launcher.png.flat
44
com.developer.kalert.alert.sample-main-34\:/layout/sample_activity.xml=D\:\\Projects\\AndroidLibraries\\KAlertDialog-master\\sample\\build\\intermediates\\merged_res\\debug\\layout_sample_activity.xml.flat
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<dimen name="abc_action_bar_content_inset_material">24dp</dimen>
4+
<dimen name="abc_action_bar_content_inset_with_nav">80dp</dimen>
5+
<dimen name="abc_action_bar_default_height_material">64dp</dimen>
6+
<dimen name="abc_action_bar_default_padding_end_material">8dp</dimen>
7+
<dimen name="abc_action_bar_default_padding_start_material">8dp</dimen>
8+
<dimen name="abc_config_prefDialogWidth">580dp</dimen>
9+
<dimen name="abc_text_size_subtitle_material_toolbar">16dp</dimen>
10+
<dimen name="abc_text_size_title_material_toolbar">20dp</dimen>
11+
<dimen name="design_navigation_max_width">320dp</dimen>
12+
<dimen name="design_snackbar_action_inline_max_width">0dp</dimen>
13+
<dimen name="design_snackbar_background_corner_radius">2dp</dimen>
14+
<dimen name="design_snackbar_extra_spacing_horizontal">24dp</dimen>
15+
<dimen name="design_snackbar_max_width">576dp</dimen>
16+
<dimen name="design_snackbar_min_width">320dp</dimen>
17+
<dimen name="design_snackbar_padding_vertical_2lines">@dimen/design_snackbar_padding_vertical
18+
</dimen>
19+
<dimen name="design_tab_scrollable_min_width">160dp</dimen>
20+
<dimen name="mtrl_bottomappbar_height">64dp</dimen>
21+
<dimen name="mtrl_toolbar_default_height">64dp</dimen>
22+
<integer name="design_snackbar_text_max_lines">1</integer>
23+
<style name="Widget.Design.TabLayout" parent="Base.Widget.Design.TabLayout">
24+
<item name="tabGravity">center</item>
25+
<item name="tabMode">fixed</item>
26+
</style>
27+
<style name="dialog_blue_button" parent="android:Widget.Button">
28+
<item name="android:layout_width">wrap_content</item>
29+
<item name="android:layout_height">32dp</item>
30+
<item name="android:background">@drawable/button_background</item>
31+
<item name="android:textSize">16sp</item>
32+
<item name="android:paddingLeft">21dp</item>
33+
<item name="android:paddingRight">21dp</item>
34+
</style>
35+
</resources>

0 commit comments

Comments
 (0)