문제

I'm making an app that starts with a splash screen. It includes a videoview, but when the app starts there is a black square until it loads the video. I tried to set a background to the videoview (same as the activity has - blue), but at this case the background hides the video. How could I solve this?

Thanks in advance.

도움이 되었습니까?

해결책

One recommendation would be to put a starting image(or a blank image/color) and them set

videoView.setOnPreparedListener 

to hide that image once the video is ready.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top