Skip to content

Commit 7aff83b

Browse files
author
Andrea Maglie
committed
project setup
1 parent f03bcfc commit 7aff83b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
TopSheet - a "top" version of BottomSheet
22
=========================================
33

4-
Usage
4+
TopSheetBehaviour
5+
-----
6+
```java
7+
View sheet = findViewById(R.id.top_sheet);
8+
TopSheetBehavior.from(sheet).setState(TopSheetBehavior.STATE_EXPANDED);
9+
```
10+
11+
TopSheetDialog
512
-----
613
```java
714
TopSheetDialog dialog = new TopSheetDialog(this);
8-
dialog.setContentView(R.layout.sheet_content);
9-
dialog.show();
15+
dialog.setContentView(R.layout.sheet_content);
16+
dialog.show();
1017
```
1118

1219

20+
1321
License
1422
-------
1523

0 commit comments

Comments
 (0)