In my android video player, how can I set the size of video, so that it can fit in the view.
I've created a CustomView extends SurfaceView
. in the overriden onMeasure()
, I'm thinking of calculating the size of my CustomView (which displays the video).
Then pass those dimensions in setMeasuredDimension(width, height);
.
I've not come across any other method to set the dimensions of video manually.
Thanks