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

First tooltip does not appear #144

Open
joelphilippage opened this issue Oct 25, 2018 · 0 comments
Open

First tooltip does not appear #144

joelphilippage opened this issue Oct 25, 2018 · 0 comments

Comments

@joelphilippage
Copy link

I am trying to use TourGuide on Wear OS. The tooltip does not appear the first time I use the "PlayOn" function but does the second time. Here is my code:

`final TourGuide tourGuide = TourGuide.init(activity).with(TourGuide.Technique.CLICK);
ToolTip toolTip = new ToolTip();
toolTip.setGravity(Gravity.TOP);
toolTip.setDescription("Click description");
Overlay overlay = new Overlay();
overlay.setMDisableClickThroughHole(true);
overlay.setMStyle(Overlay.Style.CIRCLE);

                overlay.setOnClickListener(view -> {
                    tourGuide.cleanUp();
                    clicks++;
                    if(clicks == 1) {
                        tourGuide.playOn(episodeFragment.findViewById(R.id.play_button));
                    }
                });

        Pointer downloadPointer = new Pointer(Gravity.CENTER);
        tourGuide.setPointer(downloadPointer)
                .setToolTip(toolTip)
                .setOverlay(overlay);
        tourGuide.playOn(episodeFragment.findViewById(R.id.play_button));`
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

1 participant