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

你好大神,如果我想点击歌词中的某一个字 弹出个Toast 怎么实现呢? #2

Open
wincentytg opened this issue Mar 4, 2019 · 1 comment

Comments

@wincentytg
Copy link

你好大神,如果我想点击歌词中的某一个字 弹出个Toast 怎么实现呢?

@ouyangpeng
Copy link
Owner

估计得:通过重写自定义View的onTouchEvent(MotionEvent event)方法实现对自定义View的长按和点击事件的监听,获取用户点击的位置。
然后判断 你点击的位置 对应的是那一句歌词的哪一个字 然后再toast提示

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