Updated README and lib version

This commit is contained in:
yarolegovich
2017-09-03 14:41:35 +07:00
parent 4a56ba421e
commit 412e9aa475
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -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.
@@ -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);
+1 -1
View File
@@ -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