I know ShowcaseView
can target one exact view, but I just want a semi-transparent demo screen without target anything, and I want to customize showcase's background. So I did this:
showcaseView=new ShowcaseView.Builder(this)
// .setTarget(new ActionViewTarget(this, ActionViewTarget.Type.HOME))
.setTarget(Target.NONE)
.setStyle(R.style.Transparent)
.setContentTitle("Check it out")
.setContentText("You don't always need a target to showcase")
.hideOnTouchOutside()
.singleShot(42)
.build();
And my R.style.Transparent
like this:
<style name="Transparent" parent="android:Theme">
<item name="android:windowIsTranslucent">true</item>
<item name="android:background">@drawable/guide</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">true</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
But finally, only contentTitle and contentText were showed, my @drawable/guide
was not showed!
How do i do to show my own background image, Thanks.