我像这样使用 ShowcaseView:
ActionItemTarget target = new ActionItemTarget(this, R.id.menu_search);
ShowcaseView sv = new ShowcaseView.Builder(this, true)
.setTarget(target)
.setContentText("Press this to search")
.setStyle(R.style.CustomShowcaseTheme)
.build();
但是当我第一次启动应用程序时,ShowcaseView 会突出显示主页按钮。当我尝试再次启动应用程序时,会显示正确的 ActionBar 项目。我的应用不使用 ActionbarSherlock 等兼容性库。
知道为什么会发生这种情况吗?