diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser
index b9865d5..5b19860 100644
Binary files a/.idea/caches/build_file_checksums.ser and b/.idea/caches/build_file_checksums.ser differ
diff --git a/README.md b/README.md
index 83aef15..dca683a 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@ An Android library to create fully material designed bottom dialogs similar to t
## Releases:
-#### Current release: 2.1.1.
+#### Current release: 2.1.2.
- This library is now based on Kotlin and AndroidX.
@@ -40,7 +40,7 @@ allprojects {
Now add the dependency to your app build.gradle file:
```
-implementation 'com.github.marcoscgdev:DialogSheet:2.1.1'
+implementation 'com.github.marcoscgdev:DialogSheet:2.1.2'
```
### Creating the dialog
@@ -70,10 +70,19 @@ val dialogSheet = DialogSheet(this)
### Creating the dialog using the new style
-Simply add a new boolean-type argument to the dialog constructor.
+Simply use the new _DialogSheet2_ class:
```java
-val dialogSheet = DialogSheet(this, true)
+val dialogSheet = DialogSheet2(this)
+ ...
+ ...
+ .show()
+```
+
+Or add a new boolean-type argument to the dialog constructor:
+
+```java
+val dialogSheet = DialogSheet2(this, true)
...
...
.show()
@@ -127,6 +136,17 @@ Button button = (Button) inflatedView.findViewById(R.id.customButton);
...
```
+### Custom resources:
+
+Override it if you want :P
+
+```xml
+16dp
+56dp
+60dp
+15sp
+```
+
---
>See the *sample project* to clarify any queries you may have.
diff --git a/app/build.gradle b/app/build.gradle
index 0f9f28c..64f3220 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -8,8 +8,8 @@ android {
applicationId "com.marcoscg.dialogsheetsample"
minSdkVersion 14
targetSdkVersion 29
- versionCode 211
- versionName "2.1.1"
+ versionCode 212
+ versionName "2.1.2"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
deleted file mode 100644
index 52fa900..0000000
--- a/app/src/main/res/values/dimens.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- 21dp
-
\ No newline at end of file
diff --git a/dialogsheet/build.gradle b/dialogsheet/build.gradle
index 2db2eb2..66ac56e 100644
--- a/dialogsheet/build.gradle
+++ b/dialogsheet/build.gradle
@@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 29
- versionCode 211
- versionName "2.1.1"
+ versionCode 212
+ versionName "2.1.2"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
diff --git a/dialogsheet/src/main/res/values/dimens.xml b/dialogsheet/src/main/res/values/dimens.xml
index 24321a7..f80c77f 100644
--- a/dialogsheet/src/main/res/values/dimens.xml
+++ b/dialogsheet/src/main/res/values/dimens.xml
@@ -3,6 +3,5 @@
16dp
56dp
60dp
- 16dp
15sp
\ No newline at end of file