@@ -7,8 +7,6 @@ An Android library to create fully material designed bottom dialogs similar to t
77
88#### Current release: 2.2.0.
99
10- - This library is now based on Kotlin and AndroidX.
11-
1210You can see all the library releases [ here] ( https://github.com/marcoscgdev/DialogSheet/releases ) .
1311
1412---
@@ -18,7 +16,7 @@ You can see all the library releases [here](https://github.com/marcoscgdev/Dialo
1816
1917<kbd ><img src =" https://raw.githubusercontent.com/marcoscgdev/DialogSheet/master/screenshots/sc_3.png " width =" 620 " ></kbd >
2018
21- Download the sample apk [ here] ( https://github.com/marcoscgdev/DialogSheet/releases/download/2.1.1 /app-debug.apk ) .
19+ Download the sample apk [ here] ( https://github.com/marcoscgdev/DialogSheet/releases/download/2.2.0 /app-debug.apk ) .
2220
2321---
2422
@@ -51,7 +49,7 @@ dependencyResolutionManagement {
5149}
5250```
5351
54- Now add the dependency to your app build.gradle file:
52+ Now add the dependency to your app * build.gradle* file:
5553
5654```
5755implementation 'com.github.marcoscgdev:DialogSheet:2.2.0'
@@ -141,18 +139,18 @@ Simply override this dimen with your desired size
141139 - Via inflated view:
142140
143141 ``` java
144- View view = View . inflate(context, R . layout. custom_dialog_view, null );
145- dialogSheet. setView(view);
142+ val view = View . inflate(context, R . layout. custom_dialog_view, null )
143+ dialogSheet. setView(view)
146144 ```
147145
148146 - Via layout resource:
149147
150148 ``` java
151- dialogSheet. setView(R . layout. custom_dialog_view);
152-
153- // Access dialog custom inflated view
154- View inflatedView = dialogSheet. getInflatedView();
155- Button button = ( Button ) inflatedView. findViewById(R . id. customButton);
149+ dialogSheet. setView(R . layout. custom_dialog_view)
150+
151+ // Access dialog custom inflated view
152+ val inflatedView = dialogSheet. getInflatedView()
153+ val button = inflatedView. findViewById(R . id. customButton)
156154...
157155 ```
158156
0 commit comments