Skip to content

Commit

Permalink
Version 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscgdev committed Nov 7, 2020
1 parent d34cd25 commit e1bedbc
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 13 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
28 changes: 24 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -127,6 +136,17 @@ Button button = (Button) inflatedView.findViewById(R.id.customButton);
...
```

### Custom resources:

Override it if you want :P

```xml
<dimen name="dialog_sheet_corner_radius">16dp</dimen>
<dimen name="dialog_sheet_icon_size">56dp</dimen>
<dimen name="dialog_sheet_v2_icon_size">60dp</dimen>
<dimen name="dialog_sheet_button_text_size">15sp</dimen>
```

---
>See the *sample project* to clarify any queries you may have.
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/res/values/dimens.xml

This file was deleted.

4 changes: 2 additions & 2 deletions dialogsheet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

}
Expand Down
1 change: 0 additions & 1 deletion dialogsheet/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
<dimen name="dialog_sheet_corner_radius">16dp</dimen>
<dimen name="dialog_sheet_icon_size">56dp</dimen>
<dimen name="dialog_sheet_v2_icon_size">60dp</dimen>
<dimen name="dialog_sheet_test_dimen">16dp</dimen>
<dimen name="dialog_sheet_button_text_size">15sp</dimen>
</resources>

0 comments on commit e1bedbc

Please sign in to comment.