I have a Fragment
within a FrameLayout
. The Fragment
contains a VideoView
amongst other things. If I modify the FrameLayout
's left position (by calling its layout(...)
method), the FrameLayout
and the Fragment
within it re-position themselves correctly. The VideoView
within the Fragment
sometimes re-positions itself but most often stays put.
Does anyone know why the VideoView
is not re-positioning itself within its parent? Does anyone know how I might be able to get it to do so?
I gave up in the end. There doesn't seem to be a straightforward workaround for re-positioning a VideoView or any workaround for that matter. What I'm doing now instead is to play the video full screen in a new activity.