Skip to content

Commit e1bedbc

Browse files
committed
Version 2.1.2
1 parent d34cd25 commit e1bedbc

File tree

6 files changed

+28
-13
lines changed

6 files changed

+28
-13
lines changed
0 Bytes
Binary file not shown.

README.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ An Android library to create fully material designed bottom dialogs similar to t
55

66
## Releases:
77

8-
#### Current release: 2.1.1.
8+
#### Current release: 2.1.2.
99

1010
- This library is now based on Kotlin and AndroidX.
1111

@@ -40,7 +40,7 @@ allprojects {
4040
Now add the dependency to your app build.gradle file:
4141

4242
```
43-
implementation 'com.github.marcoscgdev:DialogSheet:2.1.1'
43+
implementation 'com.github.marcoscgdev:DialogSheet:2.1.2'
4444
```
4545

4646
### Creating the dialog
@@ -70,10 +70,19 @@ val dialogSheet = DialogSheet(this)
7070

7171
### Creating the dialog using the new style
7272

73-
Simply add a new boolean-type argument to the dialog constructor.
73+
Simply use the new _DialogSheet2_ class:
7474

7575
```java
76-
val dialogSheet = DialogSheet(this, true)
76+
val dialogSheet = DialogSheet2(this)
77+
...
78+
...
79+
.show()
80+
```
81+
82+
Or add a new boolean-type argument to the dialog constructor:
83+
84+
```java
85+
val dialogSheet = DialogSheet2(this, true)
7786
...
7887
...
7988
.show()
@@ -127,6 +136,17 @@ Button button = (Button) inflatedView.findViewById(R.id.customButton);
127136
...
128137
```
129138

139+
### Custom resources:
140+
141+
Override it if you want :P
142+
143+
```xml
144+
<dimen name="dialog_sheet_corner_radius">16dp</dimen>
145+
<dimen name="dialog_sheet_icon_size">56dp</dimen>
146+
<dimen name="dialog_sheet_v2_icon_size">60dp</dimen>
147+
<dimen name="dialog_sheet_button_text_size">15sp</dimen>
148+
```
149+
130150
---
131151
>See the *sample project* to clarify any queries you may have.
132152

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
applicationId "com.marcoscg.dialogsheetsample"
99
minSdkVersion 14
1010
targetSdkVersion 29
11-
versionCode 211
12-
versionName "2.1.1"
11+
versionCode 212
12+
versionName "2.1.2"
1313
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1414
}
1515
buildTypes {

app/src/main/res/values/dimens.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

dialogsheet/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion 14
99
targetSdkVersion 29
10-
versionCode 211
11-
versionName "2.1.1"
10+
versionCode 212
11+
versionName "2.1.2"
1212
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1313

1414
}

dialogsheet/src/main/res/values/dimens.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
<dimen name="dialog_sheet_corner_radius">16dp</dimen>
44
<dimen name="dialog_sheet_icon_size">56dp</dimen>
55
<dimen name="dialog_sheet_v2_icon_size">60dp</dimen>
6-
<dimen name="dialog_sheet_test_dimen">16dp</dimen>
76
<dimen name="dialog_sheet_button_text_size">15sp</dimen>
87
</resources>

0 commit comments

Comments
 (0)