gpt4 book ai didi

android - ShowcaseView 与 ActionBarSherlock

转载 作者:行者123 更新时间:2023-11-29 00:29:46 24 4
gpt4 key购买 nike

我找到了很棒的 android 库“ShowcaseView”来生成类似于 Android 4.0 中的“教程” View 。(https://github.com/Espiandev/ShowcaseViewhttp://espiandev.github.io/ShowcaseView/)

但我不知道如何将它与我的操作栏中的图标一起使用(我正在使用 ActionBarSherlock)。

它应该与actionbar和ActionBarSherlock兼容,但我无法访问ids。

有了左上角的操作栏图标,它就像魅力...

scv = ShowcaseView.insertShowcaseView(android.R.id.home, this, "Hello", "My text", scvo);

当我想访问操作栏中的图标时,没有显示 showcaseview,即使是开发分支也是如此。

有人对这个库有一些想法或经验吗?

最佳答案

为了展示 ActionBar 图标(也称为 Action Items),您需要使用 insertShowcaseViewWithType(ITEM_ACTION_ITEM, ...)方法。

关于android - ShowcaseView 与 ActionBarSherlock,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16563167/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com