Skip to content

Commit 1ee3817

Browse files
updated library
2 parents 9a93e1b + 64f1260 commit 1ee3817

File tree

2 files changed

+49
-210
lines changed

2 files changed

+49
-210
lines changed

README.md

Lines changed: 49 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,49 @@
1-
Alert Dialog
1+
Alert Dialog ![API](https://img.shields.io/badge/API-15%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)
22
===================
3-
Alert for Android, a beautiful and material alert dialog
3+
AlertDialog for Android, a beautiful and material alert dialog to use in your android app.
4+
5+
**Library available at JitPack.io**
6+
7+
[![](https://jitpack.io/v/TutorialsAndroid/KAlertDialog.svg)](https://jitpack.io/#TutorialsAndroid/KAlertDialog)
8+
9+
## Important
10+
11+
**Note this library was made in the making for `Kinda` app this library was copied from `sweet-alert-dialog` repository on github we made this library because we want to use own library on `Kinda` app.So this library is in development we will monthly
12+
update this library with some changes.**
413

514
## ScreenShot
6-
![image]()
15+
![](https://github.com/TutorialsAndroid/KAlertDialog/blob/master/art/device-2019-03-23-132617.png)
716

817
## Setup
9-
The simplest way to use AlertDialog is to add the library as aar dependency to your build.
18+
The simplest way to use AlertDialog is to add the library as dependency to your build.
1019

11-
**Gradle**
20+
## Gradle
1221

13-
repositories {
14-
mavenCentral()
15-
}
22+
Add it in your root build.gradle at the end of repositories:
1623

17-
dependencies {
18-
compile 'cn.pedant.sweetalert:library:1.3'
19-
}
24+
allprojects {
25+
repositories {
26+
...
27+
maven { url 'https://jitpack.io' }
28+
}
29+
}
30+
31+
Step 2. Add the dependency
32+
33+
dependencies {
34+
implementation 'com.github.TutorialsAndroid:KAlertDialog:v1.0'
35+
}
2036

2137
## Usage
2238

23-
show material progress
39+
**Show material progress**
2440

2541
KAlertDialog pDialog = new KAlertDialog(this, KAlertDialog.PROGRESS_TYPE);
2642
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
2743
pDialog.setTitleText("Loading");
2844
pDialog.setCancelable(false);
2945
pDialog.show();
3046

31-
![image](https://github.com/pedant/sweet-alert-dialog/raw/master/play_progress.gif)
3247

3348
You can customize progress bar dynamically with materialish-progress methods via **KAlertDialog.getProgressHelper()**:
3449
- resetCount()
@@ -51,10 +66,6 @@ You can customize progress bar dynamically with materialish-progress methods via
5166
- getSpinSpeed()
5267
- setSpinSpeed(float spinSpeed)
5368

54-
thanks to the project [materialish-progress](https://github.com/pnikosis/materialish-progress) and [@croccio](https://github.com/croccio) participation.
55-
56-
more usages about progress, please see the sample.
57-
5869
A basic message:
5970

6071
new KAlertDialog(this)
@@ -145,4 +156,24 @@ Show the cancel button and bind listener to it:
145156
.changeAlertType(KAlertDialog.SUCCESS_TYPE);
146157
}
147158
})
148-
.show();
159+
.show();
160+
161+
## License
162+
163+
* [Apache Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
164+
165+
```
166+
Copyright 2019 KAlertDialog
167+
168+
Licensed under the Apache License, Version 2.0 (the "License");
169+
you may not use this file except in compliance with the License.
170+
You may obtain a copy of the License at
171+
172+
http://www.apache.org/licenses/LICENSE-2.0
173+
174+
Unless required by applicable law or agreed to in writing, software
175+
distributed under the License is distributed on an "AS IS" BASIS,
176+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
177+
See the License for the specific language governing permissions and
178+
limitations under the License.
179+

README.zh.md

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)