Skip to content

Commit

Permalink
Update to 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Dec 17, 2016
1 parent 6a02d6b commit 69a3ddc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Available from API 14.

#####1. Add the following to your build.gradle:
```groovy
compile 'com.github.rubensousa:floatingtoolbar:1.2.1'
compile 'com.github.rubensousa:floatingtoolbar:1.3.0'
```
#####2. Add FloatingToolbar as a direct child of CoordinatorLayout and before the FloatingActionButton:
```xml
Expand Down Expand Up @@ -66,20 +66,27 @@ mFloatingToolbar.setClickListener(new FloatingToolbar.ItemClickListener() {
}
});
```
##### 6. (Optional) Attach a RecyclerView to hide the FloatingToolbar on scroll:

##### 6. If you want to show a snackbar in the same layout as the FloatingToolbar, please use:

```java
mFloatingToolbar.showSnackBar(snackbar);
```

##### 7. (Optional) Attach a RecyclerView to hide the FloatingToolbar on scroll:

```java
mFloatingToolbar.attachRecyclerView(recyclerView);
```

##### 7. (Optional) Use show() and hide() to trigger the transition anytime:
##### 8. (Optional) Use show() and hide() to trigger the transition anytime:

```java
mFloatingToolbar.show();
mFloatingToolbar.hide();
```

##### 8. (Optional) Add a MorphListener to listen to morph animation events
##### 9. (Optional) Add a MorphListener to listen to morph animation events

```java
mFloatingToolbar.addMorphListener(new FloatingToolbar.MorphListener() {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
GROUP=com.github.rubensousa
VERSION_NAME=1.2.1
VERSION_NAME=1.3.0

POM_ARTIFACT_ID=floatingtoolbar
POM_NAME=FloatingToolbar
Expand Down

0 comments on commit 69a3ddc

Please sign in to comment.