0
ShowcaseView
은 정확히 하나의보기를 대상으로 할 수 있지만 반투명 데모 화면에 목표물이 없으면 표시 할 배경을 사용자 정의하고 싶습니다. 이 같은ShowcaseView를 사용하여 반투명 데모 화면을 추가하는 방법
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();
그리고 내 R.style.Transparent
: 그래서 나는이 한
<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>
을하지만 결국 만 contentTitle 및 contentText이 보였다, 내 @drawable/guide
보여 주었다되지 않았습니다!
어떻게 내 자신의 배경 이미지를 표시합니까, 고마워.
'sv_backgroundColor' 좋은,하지만 난 내 배경 이미지로 드로어 블을 사용할 수없는 경우에 당신이 말한대로, 어떻게 반을 만들 수 있습니다 https://github.com/amlcurran/ShowcaseView/blob/master/sample/src/main/res/values/styles.xml - 투명 데모 화면이 될 것입니다! [] (http://i.stack.imgur.com/P3kzh.png) – user1024
정말로 원한다면 sv_backgroundColor를 투명하게 설정 한 다음 수동으로'setBackground (Drawable)'을 만들었습니다. 그것은 표준보기, 잊지 마세요! –
감사합니다. – user1024