I have the following code in my activity. In my xml, the video view is inside the linear layout. However, when the view is clicked, the onTouchListener
never fires.
i have faces this issue and the solutions is:-
1-in your xml set the followin attribute to VideoView
android:clickable="true"
2- simply in your code set setOnClickListenerto the VideoView and it will work like charm:
videoView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(CinemaDetailsActivity.this , FullScreenPlayerActivity.class);
intent.putExtra("url" , getIntent().getStringExtra("url"));
startActivity(intent);
}
});