Skip to content

Commit da99681

Browse files
author
mejdi hafiane
committed
2 parents 6ea204c + da0940c commit da99681

File tree

7 files changed

+24
-5
lines changed

7 files changed

+24
-5
lines changed

README.md

+24-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![](https://jitpack.io/v/mejdi14/Flat-Dialog-Android.svg)](https://jitpack.io/#mejdi14/Flat-Dialog-Android)
66

77
<p align="center">
8-
<img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/dialogic.png" height="250" width="300" >
8+
<img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/flatdialog.png" height="300" width="300" >
99
</p>
1010

1111
## Installation
@@ -19,7 +19,7 @@ allprojects {
1919
maven { url "https://jitpack.io" }
2020
}
2121
}
22-
```
22+
```
2323
## Dependency
2424

2525
Add this to your module's `build.gradle` file (make sure the version matches the JitPack badge above):
@@ -32,10 +32,10 @@ dependencies {
3232
```
3333

3434
## Screenshots
35-
<img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image1.jpg" height="420" width="260" hspace="20"><img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image2.jpg" height="420" width="260" hspace="20"><img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image3.jpg" height="420" width="260">
36-
<img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image4.jpg" height="420" width="260" hspace="20"><img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image5.jpg" height="420" width="260" hspace="20">
35+
<img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image1.jpg" height="580" width="260" hspace="20"><img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image2.jpg" height="580" width="260" hspace="20"><img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image3.jpg" height="580" width="260">
36+
<img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image4.jpg" height="580" width="260" hspace="20"><img src="https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image5.jpg" height="580" width="260" hspace="20">
3737

38-
## How to use
38+
## How to use with java
3939

4040
``` java
4141
final FlatDialog flatDialog = new FlatDialog(ExempleActivity.this);
@@ -60,6 +60,25 @@ dependencies {
6060
.show();
6161
```
6262

63+
## How to use with kotlin
64+
65+
``` java
66+
val flatDialog = FlatDialog(this@MainActivity)
67+
flatDialog.setTitle("Login")
68+
.setSubtitle("write your profile info here")
69+
.setFirstTextFieldHint("email")
70+
.setSecondTextFieldHint("password")
71+
.setFirstButtonText("CONNECT")
72+
.setSecondButtonText("CANCEL")
73+
.withFirstButtonListner {
74+
// do something ...
75+
}
76+
.withSecondButtonListner {
77+
flatDialog.dismiss()
78+
}
79+
.show()
80+
```
81+
6382
## More useful methods
6483
<table>
6584
<tr>

screenshots/flatdialog.png

17.4 KB
Loading

screenshots/image1.jpg

220 KB
Loading

screenshots/image2.jpg

255 KB
Loading

screenshots/image3.jpg

244 KB
Loading

screenshots/image4.jpg

197 KB
Loading

screenshots/image5.jpg

220 KB
Loading

0 commit comments

Comments
 (0)