From 16f2625bf6ad24fa9a192364fd1667b6968cb3bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:13:37 +0100 Subject: [PATCH 01/14] Create README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c726e07 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# DialogSheet +An Android library to create fully material designed bottom dialogs similar to the Android Pay app. + +--- + +## Screenshots +![alt-text-1](https://raw.githubusercontent.com/marcoscgdev/DialogSheet/master/screenshots/1.png "Screenshot 1") ![alt-text-2](https://raw.githubusercontent.com/marcoscgdev/DialogSheet/master/screenshots/1.png2 "Screenshot 2") From 458a1101f839c2ee6f17277e40f6d5fcbaa10e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:14:27 +0100 Subject: [PATCH 02/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c726e07..8b0b8c2 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ An Android library to create fully material designed bottom dialogs similar to t --- ## Screenshots -![alt-text-1](https://raw.githubusercontent.com/marcoscgdev/DialogSheet/master/screenshots/1.png "Screenshot 1") ![alt-text-2](https://raw.githubusercontent.com/marcoscgdev/DialogSheet/master/screenshots/1.png2 "Screenshot 2") + From da32e7a63e3da063fb660eb84b60a7cc194e79f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:14:45 +0100 Subject: [PATCH 03/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b0b8c2..04cd0bf 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ An Android library to create fully material designed bottom dialogs similar to t --- ## Screenshots - + From e3158014337cb56b6992e5a7f37f201c18f22c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:15:00 +0100 Subject: [PATCH 04/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04cd0bf..f5d5279 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ An Android library to create fully material designed bottom dialogs similar to t --- ## Screenshots - + From dbdac478f38b41458612d57060de4a952b3e6237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:15:15 +0100 Subject: [PATCH 05/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f5d5279..0d8f225 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ An Android library to create fully material designed bottom dialogs similar to t --- ## Screenshots - +     From 63cebacc495b99456d3ffdaa6abaa5707c8428ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:15:36 +0100 Subject: [PATCH 06/14] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0d8f225..290514d 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,4 @@ An Android library to create fully material designed bottom dialogs similar to t ## Screenshots      + From 8ad0ea9d2e8d3da53fc232a7b9c3404b6f7e39a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:16:25 +0100 Subject: [PATCH 07/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 290514d..5e9dba3 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,4 @@ An Android library to create fully material designed bottom dialogs similar to t ## Screenshots      - + From 2925d9ee1195b99bfe7518d254ff3854e7b64f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:17:47 +0100 Subject: [PATCH 08/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e9dba3..43bed89 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,5 @@ An Android library to create fully material designed bottom dialogs similar to t --- ## Screenshots -     +     From e76e0d65bf9c09018af2c89e94008be9e5a19c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:18:32 +0100 Subject: [PATCH 09/14] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 43bed89..280a1fb 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,5 @@ An Android library to create fully material designed bottom dialogs similar to t --- ## Screenshots -     - +     + From 06b2e0882fa5b36f2c3d6a70af1d78a9b2ceede5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:18:45 +0100 Subject: [PATCH 10/14] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 280a1fb..a7c8765 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,5 @@ An Android library to create fully material designed bottom dialogs similar to t ## Screenshots      + From 710f49fbf703abd346e81c40634541797b6c31f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:22:54 +0100 Subject: [PATCH 11/14] Update README.md --- README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/README.md b/README.md index a7c8765..6506afd 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,57 @@ An Android library to create fully material designed bottom dialogs similar to t --- +## Releases: + +#### Current release: 1.0.1. + +You can see all the library releases [here](https://github.com/marcoscgdev/DialogSheet/releases). + +--- + ## Screenshots      + +--- + +## Usage: + +### Adding the depencency + +Add this to your root *build.gradle* file: + +``` +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } +} +``` + +Now add the dependency to your app build.gradle file: + +``` +compile 'com.github.marcoscgdev:DialogSheet:1.0.1' +``` + +### Creating the dialog + +Here is a complete snippet of it usage: + +```java +new DialogSheet(this) + .setTitle(R.string.app_name) + .setMessage(R.string.lorem) + .setPositiveButton(android.R.string.ok, new DialogSheet.OnPositiveClickListener() { + @Override + public void onClick(View view) { + // Your action + } + }) + .setNegativeButton(android.R.string.cancel, null) + .setButtonsColorRes(R.color.colorPrimary) // Default color is accent + .show(); +``` From e5e14053a5eef8aba2cca48df652bcff1eca0fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:24:52 +0100 Subject: [PATCH 12/14] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6506afd..4d6b47f 100644 --- a/README.md +++ b/README.md @@ -49,11 +49,16 @@ new DialogSheet(this) .setMessage(R.string.lorem) .setPositiveButton(android.R.string.ok, new DialogSheet.OnPositiveClickListener() { @Override - public void onClick(View view) { + public void onClick(View v) { + // Your action + } + }) + .setNegativeButton(android.R.string.cancel, new DialogSheet.OnNegativeClickListener() { + @Override + public void onClick(View v) { // Your action } }) - .setNegativeButton(android.R.string.cancel, null) .setButtonsColorRes(R.color.colorPrimary) // Default color is accent .show(); ``` From ca8c93ea9ec43d0fb67339b4ebdf264fb058f5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:25:33 +0100 Subject: [PATCH 13/14] Update README.md --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 4d6b47f..d08f9c1 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,35 @@ new DialogSheet(this) .setButtonsColorRes(R.color.colorPrimary) // Default color is accent .show(); ``` + +--- +>See the *sample project* to clarify any queries you may have. + +--- + +## License + +``` +The MIT License (MIT) + +Copyright (c) 2017 Marcos Calvo García + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +``` + From 5bfcbebe7fa74aa5fdd5153964b6b06fe375ca39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Calvo=20Garc=C3=ADa?= Date: Sat, 2 Dec 2017 17:25:56 +0100 Subject: [PATCH 14/14] Create LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4652688 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Marcos Calvo García + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.