我想在展示橱窗视图中放置跳过图标。如何将其放入内部布局?有什么方法可以为此创建自定义布局,然后单击跳过图标以关闭展示柜视图...
下面是我的代码;
final FancyShowCaseView fancyShowCaseView1 = new FancyShowCaseView.Builder(getActivity())
.customView(R.layout.layout_filter_focus, view -> {
view.findViewById(R.id.imgMenu);
}
)
.focusShape(FocusShape.ROUNDED_RECTANGLE)
.fitSystemWindows(true)
.closeOnTouch(true)
.focusOn(getActivity().findViewById(R.id.ivSetting))
.build();
final FancyShowCaseView fancyShowCaseView2 = new FancyShowCaseView.Builder(getActivity())
.customView(R.layout.layout_search_focus, view -> {
view.findViewById(R.id.ivMenuIcon);
}
)
.focusShape(FocusShape.ROUNDED_RECTANGLE)
.fitSystemWindows(true)
.closeOnTouch(true)
.focusOn(getActivity().findViewById(R.id.ivSearch))
.build();
final FancyShowCaseView mFancyShowCaseView = new FancyShowCaseView.Builder(getActivity())
.customView(R.layout.layout_custom, view -> view.findViewById(R.id.ivMenuIcon))
.focusShape(FocusShape.ROUNDED_RECTANGLE)
.fitSystemWindows(true)
.focusOn(ivMenuIcon)
.closeOnTouch(true)
.build();
new FancyShowCaseQueue()
.add(fancyShowCaseView1)
.add(fancyShowCaseView2)
.add(mFancyShowCaseView)
.show();