Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple run of onClickListener body #72

Open
Everhustle opened this issue Apr 30, 2017 · 1 comment
Open

Multiple run of onClickListener body #72

Everhustle opened this issue Apr 30, 2017 · 1 comment

Comments

@Everhustle
Copy link

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?

@maliaydemir
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants