简体   繁体   中英

Detect when view has been dismissed (touched)

I'm using MaterialShowcaseView: https://github.com/deano2390/MaterialShowcaseView

How can I detect if a specific ShowcaseView has been touched (dismissed). In my activity, I have 3 ShowcaseViews.

I may have misunderstood your question, but here goes.

If you make a custom View that extends ShowcaseView, you might be able to override onTouchEvent(MotionEvent event) and then put whatever functionality you need inside that method.

See this page about Views: https://developer.android.com/reference/android/view/View.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM