diff --git a/README.md b/README.md index b542b0c..85f167c 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,23 @@ TopSheet - a "top" version of BottomSheet ========================================= -Usage +TopSheetBehaviour +----- +```java +View sheet = findViewById(R.id.top_sheet); +TopSheetBehavior.from(sheet).setState(TopSheetBehavior.STATE_EXPANDED); +``` + +TopSheetDialog ----- ```java TopSheetDialog dialog = new TopSheetDialog(this); - dialog.setContentView(R.layout.sheet_content); - dialog.show(); +dialog.setContentView(R.layout.sheet_content); +dialog.show(); ``` + License -------