我需要在展示视图中添加按钮'GOT IT'

时间:2016-08-26 11:00:18

标签: android

我需要在展示视图'GOT IT'中添加按钮。如何在这里显示按钮'GOT IT'?

visit(MontiArcAST node)

1 个答案:

答案 0 :(得分:0)

试试这个:

  private ShowcaseView showcaseView = new ShowcaseView.Builder(getActivity())
                    .setTarget(new ViewTarget(diagnostics))
                    .setOnClickListener(counterClick)
                    .setStyle(R.style.CustomShowcaseTheme)
                    .build();



            showcaseView.setButtonText(getString(R.string.next));
            showcaseView.forceTextPosition(ShowcaseView.BELOW_SHOWCASE);
            showcaseView.setContentTitle("Search and book Diagnostics");