worker8 / TourGuide

TourGuide is an Android library that aims to provide an easy way to add pointers with animations over a desired Android View
MIT License
2.63k stars 416 forks source link

Disabling Click events of Views currently highlighted #47

Open azmathmoosa opened 8 years ago

azmathmoosa commented 8 years ago

I use the runOverlay_ContinueMethod() in my project and found that the views that are currently highlighted are actually clickable. I want to temporarily disable all clickable items as long as the tour is running and reenable them after its over. So please either add a feature to setClickable(false) of item under view or provide a method to inquire weather the tour is over or not. I tried to disable clickability of all the Views that I pass to the ".playLater" method of each TourGuide in sequence but I don't know when to enable them again. There is no indication of weather the tour is over or not.

NSouth commented 8 years ago

I second this concern. I would also like to disable clicks on the view being highlighted because I would like the user to go through the entire sequence before being able to interact with the actual Activity. It would be great to have something like `tourGuide.isShowing()' or have a callback when a TourGuide or Sequence is finished.

Even better would be to block all Activity interaction until the tour is over.

Overall a great library though :)

Update: I ended up creating a view that covers my entire activity to absorb clicks and I set it to View.VISIBLE while the TourGuide sequence is running and I set it back to View.GONE when it's done. It's a messy manual solution, but it's working.

azrashaikh commented 8 years ago

The owner has already added feature called .disableClick(true). But this doesn't seem to be working. Any update on this ?

rajatkalia1993 commented 6 years ago

Use this

.disableClickThroughHole(true)

it can disable the click when the tour guide is running.