Skip to content

Commit

Permalink
Merghellobranch 'master' of https://github.com/mejdi14/Flat-Dialog-An…
Browse files Browse the repository at this point in the history
  • Loading branch information
mejdi hafiane committed May 3, 2020
2 parents 6ea204c + da0940c commit da99681
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![](https://jitpack.io/v/mejdi14/Flat-Dialog-Android.svg)](https://jitpack.io/#mejdi14/Flat-Dialog-Android)

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

## Installation
Expand All @@ -19,7 +19,7 @@ allprojects {
maven { url "https://jitpack.io" }
}
}
```
```
## Dependency

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

## Screenshots
<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">
<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">
<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">
<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">

## How to use
## How to use with java

``` java
final FlatDialog flatDialog = new FlatDialog(ExempleActivity.this);
Expand All @@ -60,6 +60,25 @@ dependencies {
.show();
```

## How to use with kotlin

``` java
val flatDialog = FlatDialog(this@MainActivity)
flatDialog.setTitle("Login")
.setSubtitle("write your profile info here")
.setFirstTextFieldHint("email")
.setSecondTextFieldHint("password")
.setFirstButtonText("CONNECT")
.setSecondButtonText("CANCEL")
.withFirstButtonListner {
// do something ...
}
.withSecondButtonListner {
flatDialog.dismiss()
}
.show()
```

## More useful methods
<table>
<tr>
Expand Down
Binary file added screenshots/flatdialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/image1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/image2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/image3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/image4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/image5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit da99681

Please sign in to comment.