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

"Got it" text is only shows at last in sequence mode,doesn't shows all time.OS: android P #187

Open
taqi92 opened this issue Nov 22, 2019 · 1 comment

Comments

@taqi92
Copy link

taqi92 commented Nov 22, 2019

the library's dismiss text is not working in sequence mode.Only got it text poped up last time.

@Ryanhustler420
Copy link

use simple one and make few nested chunk.

`new MaterialShowcaseView.Builder(MainActivity.this)
.setTarget(findViewById(R.id.fetch_button))
.setDismissText("Oh! I See")
.setContentText("Smash this button to see all the products of this shop.")
.setDelay(1000)
.singleUse("First")
.renderOverNavigationBar()
.setMaskColour(getResources().getColor(R.color.colorPrimaryDark))
.setDismissOnTargetTouch(true)
.setListener(new IShowcaseListener() {
@OverRide
public void onShowcaseDisplayed(MaterialShowcaseView showcaseView) {
// onShocaseDisplayed action code....
}

                @Override
                public void onShowcaseDismissed(MaterialShowcaseView showcaseView) {
                    new Handler().postDelayed(new Runnable() {
                        @Override
                        public void run() {
                            new MaterialShowcaseView.Builder(MainActivity.this)
                                    .setTarget(findViewById(R.id.cancel_button))
                                    .setDismissText("Oh! OK")
                                    .setContentText("You can cancel in the middle.")
                                    .setDelay(1000) // optional but starting animations immediately in onCreate can make them choppy
                                    .singleUse("Second") // provide a unique ID used to ensure it is only shown once
                                    .renderOverNavigationBar()
                                    .setMaskColour(getResources().getColor(R.color.colorPrimaryDark))
                                    .setDismissOnTargetTouch(true)
                                    .show();
                        }
                    }, 600);
                }
            })
            .show();`

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