ShowcaseView与ActionBarSherlock [英] ShowcaseView with ActionBarSherlock
问题描述
我找到了出色的Android库ShowcaseView产生像Android 4.0的一个补习的看法。
( https://github.com/Espiandev/ShowcaseView 并的 http://espiandev.github.io/ShowcaseView/ )
I found the great android library "ShowcaseView" to generate an "tutorial" view like in Android 4.0. (https://github.com/Espiandev/ShowcaseView and http://espiandev.github.io/ShowcaseView/)
但我无法弄清楚如何在我的动作条的图标(我使用ActionBarSherlock)。
But I can't figure out how to use it with icons in my actionbar (I'm using ActionBarSherlock).
这应该与动作条和ActionBarSherlock兼容,但我不能访问IDS。
It should be compatible with the actionbar and ActionBarSherlock, but I can't access the ids.
随着它就像魅力左上角的图标动作条...
With the actionbar icon in the left upper corner it works like charm...
scv = ShowcaseView.insertShowcaseView(android.R.id.home, this, "Hello", "My text", scvo);
而当我想在动作条访问一个图标,没有showcaseview正显示出,即使在开发分支。
And when I want to access a icon in the actionbar, no showcaseview is showing, even with the dev-branch.
有没有人一些想法或经验,与此库?
Has anyone some ideas or experiences with this library?
推荐答案
有关展示动作条的图标(也被称为行动项目),要使用 insertShowcaseViewWithType(ITEM_ACTION_ITEM,...)
方法。
For showcasing ActionBar icons (also known as Action Items), you want to use the insertShowcaseViewWithType(ITEM_ACTION_ITEM, ...)
method.
这篇关于ShowcaseView与ActionBarSherlock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!