From 69a3ddc2e012c94ebb547ac3bc003b762db9dc60 Mon Sep 17 00:00:00 2001 From: ruben Date: Sat, 17 Dec 2016 23:29:26 +0000 Subject: [PATCH] Update to 1.3.0 --- README.md | 15 +++++++++++---- gradle.properties | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6ae897e..ee5d88e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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() { diff --git a/gradle.properties b/gradle.properties index 691049e..c93eed5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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