From d56325abb58bdbee092c910306c5388425bfcb34 Mon Sep 17 00:00:00 2001 From: Jakub Kinst Date: Sun, 9 Aug 2015 08:38:29 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 67a6e57..ea949a4 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,12 @@ ``` ### Optional Attributes +- `app:offlineText` Custom text to show when in OFFLINE state +- `app:emptyText` Custom text to show when in OFFLINE state - `app:offlineLayout` Custom layout to show when in OFFLINE state - `app:emptyLayout` Custom layout to show when in EMPTY state - `app:progressLayout` Custom layout to show when in PROGRESS state +- `app:state` Initial state of the view (`content`, `progress`, `offline`, `empty`) - `app:stateTextAppearance` When not using custom layouts, this is the way to style the TextViews in OFFLINE and EMPTY states. ### API @@ -30,3 +33,7 @@ - `getViewState()` Returns current view state (CONTENT/OFFLINE/EMPTY/PROGRESS) - `setEmptyText(String text)` If using default layouts, this will set the text displayed in the EMPTY state - `setOfflineText(String text)` If using default layouts, this will set the text displayed in the OFFLINE state +- `setEmptyImageDrawable(Drawable drawable)` Sets custom image shown above empty text when not using custom layout +- `setEmptyImageResource(int resourceId)` Sets custom image shown above empty text when not using custom layout +- `setOfflineImageDrawable(Drawable drawable)` Sets custom image shown above offline text when not using custom layout +- `setOfflineImageResource(int resourceId)` Sets custom image shown above offline text when not using custom layout From 80fb4e5be963dbdfb41d13b98b6cd56bd4629656 Mon Sep 17 00:00:00 2001 From: Jakub Kinst Date: Sun, 9 Aug 2015 08:38:48 +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 ea949a4..a8f9503 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Installation ### Gradle/Maven -[![Release](https://img.shields.io/github/release/jakubkinst/Android-StatefulView.svg?label=JitPack)](https://jitpack.io/#jakubkinst/Android-StatefulView/0.8.1) +[![Release](https://img.shields.io/github/release/jakubkinst/Android-StatefulView.svg?label=JitPack)](https://jitpack.io/#jakubkinst/Android-StatefulView/0.9) ## Usage ### Example From ff37005d0ee5227ad8d975c0bdd57b474d377cd9 Mon Sep 17 00:00:00 2001 From: Jakub Kinst Date: Sun, 9 Aug 2015 08:45:29 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a8f9503..fea71be 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Installation ### Gradle/Maven -[![Release](https://img.shields.io/github/release/jakubkinst/Android-StatefulView.svg?label=JitPack)](https://jitpack.io/#jakubkinst/Android-StatefulView/0.9) +[![Release](https://img.shields.io/github/release/jakubkinst/Android-StatefulView.svg?label=JitPack)](https://jitpack.io/#jakubkinst/Android-StatefulView/0.9.1) ## Usage ### Example