yqritc / Android-ScalableVideoView

Android Texture VideoView having a variety of scale types like the scale types of ImageView such as fitCenter, centerCrop, centerTopCrop and more
Apache License 2.0
1.09k stars 223 forks source link

How can I fix when I use this view in android that supports multiwindow #40

Open ShkurtiA opened 6 years ago

ShkurtiA commented 6 years ago

I am using this view and when my activity gets resized in a multi-window mode the video is stretched. Currently I am using the cropCenter mode. Is there a way to notify the view about the change?

pflammertsma commented 6 years ago

The reason this is happening, is that ScalableVideoView doesn't update the scale factor when onMeasure() is called. I think this is a larger issue as it also affects any other layout change, like bringing up the soft keyboard with soft input mode adjustResize.