Skip to content

Commit

Permalink
Updated README and lib version
Browse files Browse the repository at this point in the history
  • Loading branch information
yarolegovich committed Sep 3, 2017
1 parent 4a56ba4 commit 412e9aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -7,7 +7,7 @@ The library is a DrawerLayout-like ViewGroup, where a "drawer" is hidden under t
## Gradle
Add this into your dependencies block.
```
compile 'com.yarolegovich:sliding-root-nav:1.0.2'
compile 'com.yarolegovich:sliding-root-nav:1.1.0'
```
## Sample
Please see the [sample app](sample/src/main/java/com/yarolegovich/slidingrootnav/sample) for a library usage example.
Expand Down Expand Up @@ -45,13 +45,14 @@ new SlidingRootNavBuilder(this)
.withMenuLocked(false) //If true, a user can't open or close the menu. Default == false.
.withGravity(SlideGravity.LEFT) //If LEFT you can swipe a menu from left to right, if RIGHT - the direction is opposite.
.withSavedState(savedInstanceState) //If you call the method, layout will restore its opened/closed state
.inject();
.withContentClickableWhenMenuOpened(isClickable) //Pretty self-descriptive. Builder Default == true
```
#### Controling the layout
A call to `inject()` returns you an interface for controlling the layout.
```java
public interface SlidingRootNav {
boolean isMenuHidden();
boolean isMenuClosed();
boolean isMenuOpened();
boolean isMenuLocked();
void closeMenu();
void closeMenu(boolean animated);
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -24,7 +24,7 @@ ext {
groupId = 'com.yarolegovich'
uploadName = 'SlidingRootNav'
description = 'DrawerLayout-like ViewGroup, where a "drawer" is hidden under the content view, which can be shifted to make the drawer visible.'
publishVersion = '1.0.2'
publishVersion = '1.1.0'
licences = ['Apache-2.0']

compileSdkVersion = 26
Expand Down

0 comments on commit 412e9aa

Please sign in to comment.