bringtofront () for android videoviews

0

I'm using bringtofront () for videos but it does not work, however if I use it for images if it works, will anyone have any solution ..?

public void bringit(){
        VideoView vid = new VideoView(this);
        //ImageView vid = new ImageView(this);
        vid=rl.findViewWithTag("video0");
        VideoView vid_d = new VideoView(this);
        //ImageView vid_d = new ImageView(this);
        vid_d=rl.findViewWithTag("video1");
        vid.bringToFront();
        vid.invalidate();
        vid_d.invalidate();

}

The method is the same for both "Views", the only difference is that the videos do not work = /.

If you have alternatives, you are welcome, the idea is to "hide / hide" a view element, but with the videos already try:

setVisibility and SetAlpha, for reasons that would lengthen the explanation a lot, these last 2 (setVisibility and SetAlpha) do not satisfy the demands.

Does anyone know the solution using bringtofront () ..?

Thank you in advance = D

    
asked by want_code_that 20.06.2018 в 03:11
source

0 answers