开发者

VideoView clicklistener not possible

开发者 https://www.devze.com 2023-03-03 17:58 出处:网络
I\'m trying to pause the video when the user clicks on it but looks like the setOnClickListenter isn\'t called.

I'm trying to pause the video when the user clicks on it but looks like the setOnClickListenter isn't called.

开发者_运维知识库

I've used setOnClickListener(this) for all my other views and they work. Can somebody shed some light on why this isn't working with a VideoView?


Take a look here, you need to use

    onTouchEvent(MotionEvent ev);

http://developer.android.com/reference/android/widget/VideoView.html

0

精彩评论

暂无评论...
验证码 换一张
取 消