Android: Why can't I give an onClickListener to a VideoView?

前端 未结 11 2144
独厮守ぢ
独厮守ぢ 2021-02-03 17:08

I have written these lines of code:

 mVideoView = (VideoView) findViewById(R.id.video_view);
    mVideoView.setOnClickListener(new OnClickListener() {
        @O         


        
11条回答
  •  花落未央
    2021-02-03 17:25

    You can well use a button which is transparent on the video view if you want a specific part of the video on touch to do something.

提交回复
热议问题