Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
* add feature description autoCancel
* change version dependency
  • Loading branch information
whalemare committed Jun 10, 2017
1 parent ab7f791 commit 02fda78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Use it in Kotlin with `apply` extension
titleId = R.string.title
click = MenuItem.OnMenuItemClickListener { true }
menu = R.menu.menu
autoCancel = false
}.show(this)
```

Expand All @@ -24,6 +25,7 @@ or in Java with `Builder` pattern
SheetMenu.with(this)
.setTitle(R.string.title)
.setMenu(R.menu.menu)
.setAutoCancel(false)
.setClick(new MenuItem.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem item) {
Expand All @@ -49,7 +51,7 @@ allprojects {
Include dependency with `BottomSheet` in your app.gradle file with:

```groovy
compile 'com.github.whalemare:sheetmenu:v1.1'
compile 'com.github.whalemare:sheetmenu:1.2'
```


Expand Down

0 comments on commit 02fda78

Please sign in to comment.