Open neimengwuyanzu opened 5 years ago
Controller controller = null; Builder builder = NewbieGuide.with(this); HighlightOptions options = new HighlightOptions.Builder() .setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (controller != null) { controller.remove(); } } }) .build(); GuidePage page = GuidePage.newInstance() .addHighLightWithOptions(llRewardWeek, options) .setLayoutRes(R.layout.view_guide_simple) .setEverywhereCancelable(true); builder.addGuidePage(page); builder.setLabel("autumn_guide"); builder.alwaysShow(true); controller = builder.build(); controller.show();
这样关闭, 另附上作者简书地址: https://www.jianshu.com/p/5e80c7aee1fc
这样关闭, 另附上作者简书地址: https://www.jianshu.com/p/5e80c7aee1fc