From 43cac4bdc14c585d5c91596d24e04bc6f57e5ea9 Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Thu, 12 Nov 2015 08:53:08 -0300 Subject: [PATCH 1/5] Turn setFadeDurations public --- .../java/com/github/amlcurran/showcaseview/ShowcaseView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseView.java b/library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseView.java index 9e68c6948..0afecb777 100644 --- a/library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseView.java +++ b/library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseView.java @@ -721,7 +721,7 @@ public void setTitleTextAlignment(Layout.Alignment textAlignment) { /** * Set the duration of the fading in and fading out of the ShowcaseView */ - private void setFadeDurations(long fadeInMillis, long fadeOutMillis) { + public void setFadeDurations(long fadeInMillis, long fadeOutMillis) { this.fadeInMillis = fadeInMillis; this.fadeOutMillis = fadeOutMillis; } From e262db2d07e6790309626fd245b13fe10a8eb9fb Mon Sep 17 00:00:00 2001 From: Alex Curran Date: Wed, 6 Apr 2016 21:25:39 +0100 Subject: [PATCH 2/5] Fix #377, where changing the text wouldn't update the ShowcaseView --- .../java/com/github/amlcurran/showcaseview/ShowcaseView.java | 2 ++ .../main/java/com/github/amlcurran/showcaseview/TextDrawer.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseView.java b/library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseView.java index 1e7d5bcb2..9c9746714 100644 --- a/library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseView.java +++ b/library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseView.java @@ -405,11 +405,13 @@ private void hideImmediate() { @Override public void setContentTitle(CharSequence title) { textDrawer.setContentTitle(title); + invalidate(); } @Override public void setContentText(CharSequence text) { textDrawer.setContentText(text); + invalidate(); } private void setScaleMultiplier(float scaleMultiplier) { diff --git a/library/src/main/java/com/github/amlcurran/showcaseview/TextDrawer.java b/library/src/main/java/com/github/amlcurran/showcaseview/TextDrawer.java index c8391bf27..2b0d827d0 100644 --- a/library/src/main/java/com/github/amlcurran/showcaseview/TextDrawer.java +++ b/library/src/main/java/com/github/amlcurran/showcaseview/TextDrawer.java @@ -112,6 +112,7 @@ public void setContentText(CharSequence details) { SpannableString ssbDetail = new SpannableString(details); ssbDetail.setSpan(textSpan, 0, ssbDetail.length(), 0); textString = ssbDetail; + hasRecalculated = true; } } @@ -120,6 +121,7 @@ public void setContentTitle(CharSequence title) { SpannableString ssbTitle = new SpannableString(title); ssbTitle.setSpan(titleSpan, 0, ssbTitle.length(), 0); titleString = ssbTitle; + hasRecalculated = true; } } From 00192b197b8c41cdff4ccd73967268d401fe9087 Mon Sep 17 00:00:00 2001 From: Alex Curran Date: Wed, 6 Apr 2016 21:27:51 +0100 Subject: [PATCH 3/5] Update to version 5.4.3 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9639a3ce1..a3f82021f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Project set-up If you're using a Gradle-based project, then you can add SCV as a dependency directly: ~~~ -compile 'com.github.amlcurran.showcaseview:library:5.4.2' +compile 'com.github.amlcurran.showcaseview:library:5.4.3' ~~~ If you're using Maven (but not Gradle), you can add the APKlib as a dependency: @@ -26,7 +26,7 @@ If you're using Maven (but not Gradle), you can add the APKlib as a dependency: com.github.amlcurran.showcaseview library - 5.4.2 + 5.4.3 apklib ~~~ From 27759be814c47cfedb09f341f064f1260259771f Mon Sep 17 00:00:00 2001 From: Alex Curran Date: Wed, 6 Apr 2016 21:34:44 +0100 Subject: [PATCH 4/5] Increments version code --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 04d182c59..3857cbaea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,7 +14,7 @@ # limitations under the License. # -VERSION_CODE=50402 +VERSION_CODE=50403 GROUP=com.github.amlcurran.showcaseview POM_DESCRIPTION=Highlight the best bits of your app to users quickly, simply, and cool...ly From e4d4c1bf5aa9b8839a343b0aed479c4874ce048e Mon Sep 17 00:00:00 2001 From: Bas Broek Date: Tue, 14 Feb 2017 16:06:21 +0100 Subject: [PATCH 5/5] Add syntax highlighting to readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a3f82021f..5fbf4bd4f 100644 --- a/README.md +++ b/README.md @@ -22,14 +22,14 @@ compile 'com.github.amlcurran.showcaseview:library:5.4.3' If you're using Maven (but not Gradle), you can add the APKlib as a dependency: -~~~ +```xml com.github.amlcurran.showcaseview library 5.4.3 apklib -~~~ +``` If you're using a standard project without either Maven or Gradle, you'll have to download the project, and the add the library manually to your project. @@ -41,14 +41,14 @@ To use ShowcaseView, use the Builder pattern. As an example: -~~~ +```java new ShowcaseView.Builder(this) .setTarget(new ActionViewTarget(this, ActionViewTarget.Type.HOME)) .setContentTitle("ShowcaseView") .setContentText("This is highlighting the Home button") .hideOnTouchOutside() .build(); -~~~ +``` You can use styles to customise how a ShowcaseView looks. I'll write more documentation soon, but for now, check out the sample project's [styles](https://github.com/amlcurran/ShowcaseView/blob/master/sample/src/main/res/values/styles.xml).