From 18c9136736b0e6443e719b17a442646e897062ad Mon Sep 17 00:00:00 2001 From: Jacek Date: Mon, 22 Jun 2015 15:18:30 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index a40d7a3..251e0cf 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,19 @@ Library that allows you to eaisly switch between your content, progress, error a + + + + <-- your empty placeholder subviews goes here --> + + Date: Mon, 22 Jun 2015 15:18:37 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 251e0cf..d3c0174 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ repositories { } dependencies { - compile ('com.github.jkwiecien:Switcher:1.1.0'){ + compile ('com.github.jkwiecien:Switcher:1.1.1'){ exclude module: 'appcompat-v7' } } From df47eda4be461947ba6ba2886924aeab637392f2 Mon Sep 17 00:00:00 2001 From: Jacek Date: Mon, 22 Jun 2015 15:31:27 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d3c0174..c5e471d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Library that allows you to eaisly switch between your content, progress, error a You only show content, progress or error view. The switcher finds out what's currently visible and hides it. - + #How to use it? 1) Build your layout like this. It's important to pack your content, progress and error view into the same ```FrameLayout```. It won't work otherwise. @@ -80,13 +80,17 @@ switcher = new Switcher.Builder() .build(); ``` -3) Use the Switcher object to switch between your views +3) Use the Switcher object to switch between your views. This will use the crossfade animation. ```java switcher.showContentView(); switcher.showProgressView(); switcher.showErrorView(); +switcher.showEmptyView(); +switcher.showBlurView(View viewToBlur); ``` +If you rather switch views immediately without animation use ```showProgressViewImmediately()``` and corresponding for other states. + #Setup ``` repositories {