Quantcast
Channel: Positioning the MediaController over the VideoView - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Positioning the MediaController over the VideoView

$
0
0

I'm having a lot of trouble trying to position the MediaController right where I want it.

What I really want to do is always show the MediaController above the VideoView, aligned with the bottom.

I've been trying to do this for the last three days without success. I've tried getting the height of the MediaController but it is always zero until it is shown the first time at the bottom of the screen.

I have overriden the MediaController to override setAnchorView so that VideoView doesn't overwrite it.

I've read the source code of both VideoView and MediaController and I've also trying getting the height of MediaController using reflection over the private fields, also without success before the component is shown the first time.

How can I know the height of the MediaController without it being displayed to the user?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images