Ravi Bhojani
Ravi Bhojani

Reputation: 1052

Android Video view ceating black window while make it gone

My application has several pages of book. In some of page I am playing video using video view. I am checking if I have any video for that page. If yes, than I am making videoview visible and passing Uri. If not, I am making it gone.

Now the problem is, once i reached to that screen and then if I swipe left/right it's creating black window in every subsequent screen. Why?

Upvotes: 0

Views: 1320

Answers (1)

Ravi Bhojani
Ravi Bhojani

Reputation: 1052

I found solution. When you want to show video make videoView.setZOrderOnTop(false); and when you want to hide video view jusr make videoView.setZOrderOnTop(true);

Upvotes: 2

Related Questions