diff --git a/README.md b/README.md index cfbd4b7..42b95a9 100644 --- a/README.md +++ b/README.md @@ -5,18 +5,18 @@ An Android library to create fully material designed bottom dialogs similar to t ## Releases: -#### Current release: 2.0.0. +#### Current release: 2.0.1. You can see all the library releases [here](https://github.com/marcoscgdev/DialogSheet/releases). --- ## Screenshots -     +     - + -Download the sample apk [here](https://github.com/marcoscgdev/DialogSheet/releases/download/2.0.0-beta/app-debug.apk). +Download the sample apk [here](https://github.com/marcoscgdev/DialogSheet/releases/download/2.0.1/app-debug.apk). --- @@ -38,7 +38,7 @@ allprojects { Now add the dependency to your app build.gradle file: ``` -implementation 'com.github.marcoscgdev:DialogSheet:2.0.0' +implementation 'com.github.marcoscgdev:DialogSheet:2.0.1' ``` ### Creating the dialog with Java @@ -83,6 +83,7 @@ dialogSheet.setCancelable(false) .setNegativeButton(android.R.string.cancel) { // Your action } + .setRoundedCorners(false) // Default value is true .setBackgroundColor(Color.BLACK) // Your custom background color .setButtonsColorRes(R.color.colorPrimary) // Default color is accent .show() @@ -96,7 +97,15 @@ Add this atribute to your main app theme @color/colorAccent ``` -#### (TIP) Adding a custom view: +### Customize corner radius + +Simply override this dimen with your desired size + +```xml +16dp +``` + +### Adding a custom view: - Via inflated view: