我在我的项目中使用了优秀的ShowcaseView库。除此之外,我还使用了这个很棒的包装类ShowcaseViewExample来一个接一个地显示视图。
这样做很好,但我不知道如何使用手势。
到目前为止的代码:
public void showcaseMainActivity() {
views = new ShowcaseViews(this, R.layout.showcase_view_template);
views.addView(new ShowcaseViews.ItemViewProperties(R.id.some_menu, R.string.showcase_title, R.string.showcase_message, ShowcaseView.ITEM_ACTION_ITEM));
views.addView(new ShowcaseViews.ViewProperties(R.id.showcaseButton, R.string.showcase_title, R.string.showcase_message));
views.show();
}
我应该在哪里添加代码以使用手势控制 showcaseButton
?