Skip to content

Commit 0edba5b

Browse files
SEE CHANGES IN README FILE
1 parent a16c6f8 commit 0edba5b

88 files changed

Lines changed: 10172 additions & 22474 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
507 KB
Binary file not shown.
0 Bytes
Binary file not shown.
1.27 KB
Binary file not shown.
0 Bytes
Binary file not shown.
1.66 KB
Binary file not shown.
0 Bytes
Binary file not shown.

.gradle/file-system.probe

0 Bytes
Binary file not shown.

.idea/workspace.xml

Lines changed: 11 additions & 369 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

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

3+
# New version released v17.0.19 on 28-07-22
4+
## Changelogs
5+
- Fixed issue in button color not changing
6+
- Using Scalable DP library
7+
- Added changing of font style
8+
### Read the changes in README
9+
310
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)
411
===================
512
AlertDialog for Android, a beautiful and material alert dialog to use in your android app.
613

714
`Older verion of this library has been removed please use new version of this library.`
815

16+
## Will you buy a coffee for me
17+
18+
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.paypal.com/paypalme/tusharmasram)
19+
920

10-
## And Don't Forget To Follow Me On Instagram
21+
## And Don't Forget To Follow Me On Instagram / Twitter
1122

1223
<p align="center">Follow me on instagram to stay up-to-date https://instagram.com/akshay.sunil.masram.1998
24+
<p align="center">Follow me on twitter to stay up-to-date https://twitter.com/akshaysmasram98
1325

1426

1527
## Contributors
@@ -42,14 +54,14 @@ Add it in your root build.gradle at the end of repositories:
4254
Step 2. Add the dependency
4355

4456
dependencies {
45-
implementation 'com.github.TutorialsAndroid:KAlertDialog:v16.0.19'
57+
implementation 'com.github.TutorialsAndroid:KAlertDialog:v17.0.19'
4658
}
4759

4860
## Usage
4961

5062
**Show material progress**
5163

52-
KAlertDialog pDialog = new KAlertDialog(this, KAlertDialog.PROGRESS_TYPE);
64+
KAlertDialog pDialog = new KAlertDialog(this, KAlertDialog.PROGRESS_TYPE, 0);
5365
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
5466
pDialog.setTitleText("Loading");
5567
pDialog.setCancelable(false);
@@ -79,57 +91,69 @@ You can customize progress bar dynamically with materialish-progress methods via
7991

8092
A basic message:
8193

82-
new KAlertDialog(this)
94+
new KAlertDialog(this, 0)
8395
.setTitleText("Here's a message!")
8496
.show();
8597

8698
A title with a text under:
8799

88-
new KAlertDialog(this)
100+
new KAlertDialog(this, 0)
89101
.setTitleText("Here's a message!")
90102
.setContentText("It's pretty, isn't it?")
91103
.show();
92104

93105
A error message:
94106

95-
new KAlertDialog(this, KAlertDialog.ERROR_TYPE)
107+
new KAlertDialog(this, KAlertDialog.ERROR_TYPE, 0)
96108
.setTitleText("Oops...")
97109
.setContentText("Something went wrong!")
98110
.show();
99111

100112
A warning message:
101113

102-
new KAlertDialog(this, KAlertDialog.WARNING_TYPE)
114+
new KAlertDialog(this, KAlertDialog.WARNING_TYPE, 0)
103115
.setTitleText("Are you sure?")
104116
.setContentText("Won't be able to recover this file!")
105117
.setConfirmText("Yes,delete it!")
106118
.show();
107119

108120
A success message:
109121

110-
new KAlertDialog(this, KAlertDialog.SUCCESS_TYPE)
122+
new KAlertDialog(this, KAlertDialog.SUCCESS_TYPE, 0)
111123
.setTitleText("Good job!")
112124
.setContentText("You clicked the button!")
113125
.show();
114126

115127
A message with a custom icon:
116128

117-
new KAlertDialog(this, KAlertDialog.CUSTOM_IMAGE_TYPE)
129+
new KAlertDialog(this, KAlertDialog.CUSTOM_IMAGE_TYPE, 0)
118130
.setTitleText("Sweet!")
119131
.setContentText("Here's a custom image.")
120132
.setCustomImage(R.drawable.custom_img)
121133
.show();
122134

123135
To Hide Cancel And Confirm Button:
124136

125-
new KAlertDialog(this, KAlertDialog.CUSTOM_IMAGE_TYPE)
137+
new KAlertDialog(this, KAlertDialog.CUSTOM_IMAGE_TYPE, 0)
126138
.setTitleText("Sweet!")
127139
.setContentText("Here's a custom image.")
128140
.setCustomImage(R.drawable.custom_img)
129141
.setConfirmText("OK") //Do not call this if you don't want to show confirm button
130142
.setCancelText("CANCEL")//Do not call this if you don't want to show cancel button
131143
.show();
132144

145+
To Change the font of title and content:
146+
147+
new KAlertDialog(this, KAlertDialog.CUSTOM_IMAGE_TYPE, R.font.yourFontName)
148+
149+
To Change the font of only title:
150+
151+
.dialogTitleFont(R.font.yourFontName)
152+
153+
To Change the font of only content:
154+
155+
.dialogContentFont(R.font.yourFontName)
156+
133157
Bind the listener to confirm button:
134158

135159
new KAlertDialog(this, KAlertDialog.WARNING_TYPE)

0 commit comments

Comments
 (0)