Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

Update library to latest android version #461

Open
wants to merge 8 commits into
base: extra-button
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ 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:

~~~
```xml
<dependency>
<groupId>com.github.amlcurran.showcaseview</groupId>
<artifactId>library</artifactId>
<version>5.4.2</version>
<version>5.4.3</version>
<type>apklib</type>
</dependency>
~~~
```

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.

Expand All @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -738,7 +740,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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand All @@ -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;
}
}

Expand Down