MaterialIntroView icon indicating copy to clipboard operation
MaterialIntroView copied to clipboard

Multiple run of onClickListener body

Open Everhustle opened this issue 8 years ago • 1 comments
trafficstars

I have this code: mscc.showcase(getActivity(), getString(R.string.new_deal_name), getActivity().findViewById(R.id.task_name), focus, 0, Constants.SHOWCASE_UNIQUEID_TASKNAME, FocusGravity.CENTER, true).show(getActivity()); mscc.showcase().setListener(new MaterialIntroListener() { @Override public void onUserClicked(String materialIntroViewId) { msccViewNumber = 2; mscc.showcase(getActivity(), getString(R.string.new_deal_access), getActivity().findViewById(R.id.task_category), focus, 0, Constants.SHOWCASE_UNIQUEID_ACCESSLEVEL, FocusGravity.CENTER, true).show(getActivity()); mscc.showcase().setListener(new MaterialIntroListener() { @Override public void onUserClicked(String materialIntroViewId) { msccViewNumber = 3; mscc.showcase(getActivity(), getString(R.string.new_deal_save), toolbar, Focus.TOOLBAR, 0, Constants.SHOWCASE_UNIQUEID_SAVE, focusGravity, true).show(getActivity()); mscc.showcase().setListener(new MaterialIntroListener() { @Override public void onUserClicked(String materialIntroViewId) { msccViewNumber = 4; taskName.requestFocus(); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY); msccSubView.dismiss(); } }); } }); } });

And this problem: when I press on showcase circle to close it, the next shows - it's how that must work, but if I press on showcase cirle several times it starts the next showcase cirle one over another, so I might have completely black screen with white circle (about 5-10 overlays of showcase). I use this lib for several fragments. So, on this fragment I need showcase to work like this: whenever I press, the showcase must dismiss instantly. On other fragments, I need to press inside the circle restricfuly.

I need help: how to not to let next showcase being shown more then once?

Everhustle avatar Apr 30 '17 17:04 Everhustle

@Everhustle I have the same problem. Is there anyone to help us?

maliaydemir avatar Aug 05 '21 13:08 maliaydemir