|
1 | | -Alert Dialog |
| 1 | +Alert Dialog  |
2 | 2 | =================== |
3 | 3 | Alert for Android, a beautiful and material alert dialog |
4 | 4 |
|
| 5 | +**Library available at JitPack.io** |
| 6 | + |
| 7 | +[](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.** |
| 13 | + |
5 | 14 | ## ScreenShot |
6 | | -![image]() |
| 15 | + |
7 | 16 |
|
8 | 17 | ## Setup |
9 | 18 | The simplest way to use AlertDialog is to add the library as aar dependency to your build. |
10 | 19 |
|
11 | | -**Gradle** |
| 20 | +## Gradle |
12 | 21 |
|
13 | | - |
| 22 | +Add it in your root build.gradle at the end of repositories: |
| 23 | + |
| 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 | + } |
14 | 36 |
|
15 | 37 | ## Usage |
16 | 38 |
|
17 | | -show material progress |
| 39 | +**Show material progress** |
18 | 40 |
|
19 | 41 | KAlertDialog pDialog = new KAlertDialog(this, KAlertDialog.PROGRESS_TYPE); |
20 | 42 | pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86")); |
@@ -44,10 +66,6 @@ You can customize progress bar dynamically with materialish-progress methods via |
44 | 66 | - getSpinSpeed() |
45 | 67 | - setSpinSpeed(float spinSpeed) |
46 | 68 |
|
47 | | - |
48 | | - |
49 | | -more usages about progress, please see the sample. |
50 | | - |
51 | 69 | A basic message: |
52 | 70 |
|
53 | 71 | new KAlertDialog(this) |
@@ -139,3 +157,23 @@ Show the cancel button and bind listener to it: |
139 | 157 | } |
140 | 158 | }) |
141 | 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 | + |
0 commit comments