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

Does not play on Fragment in ViewPager #49

Open
NSouth opened this issue Oct 21, 2015 · 0 comments
Open

Does not play on Fragment in ViewPager #49

NSouth opened this issue Oct 21, 2015 · 0 comments

Comments

@NSouth
Copy link

NSouth commented Oct 21, 2015

I apologize if I am missing something obvious. My Main activity hosts a Fragment which in turn hosts a ViewPager containing two fragments. I am trying to use TourGuide on a view in one of the ViewPager's fragments and it does not work. There are no exceptions, but no Tour is shown.

This is the code I'm running from The fragment which hosts the ViewPager:

View v = curFragmentMain.rootView;
        View card = v.findViewById(R.id.course_entire_list_card_view);

        TourGuide mTourGuideHandler = TourGuide.init(getActivity()).with(TourGuide.Technique.Click)
                .setPointer(new Pointer())
                .setToolTip(new ToolTip().setTitle("My's Tip!").setDescription("Look, you really want to click this"))
                .setOverlay(new Overlay())
                .playOn(card);

Edit: I should note that this does work on views from the fragment hosting the ViewPager. I can play the Tour on mainTab = ((ViewGroup) tabLayout.getChildAt(0)).getChildAt(0);

Edit 2: It also appears to work when the Tour is run from from one of the fragments in the ViewPager. Therefore, it seems that the issue is with TourGuide playing on views in fragments which are not the current fragment. I'm not sure if that is expected or not. I may have to implement some custom logic between the fragments using ContinueMethod.OverlayListener in order to get my desired output.

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