3

I have used video as Full Screen background in the frame layout. But video running in the background looks stretched.If i use aspect ratio, the video layout may be shrinked depends on the screen width / screen height. how to rectify this?

S.Sathya Priya
  • 470
  • 1
  • 5
  • 19
  • maintain aspect ration – Shyamal Desai Oct 22 '15 at 12:30
  • 1
    set videoview height and width wrapcontent & xml layout background black color. its like fullscreen as well as not strecthed – RDY Oct 22 '15 at 12:56
  • i want to do something like this [link](https://s3.amazonaws.com/uploads.hipchat.com/172346/1586730/BgcTZgRAJ62EpGr/output.gif) – S.Sathya Priya Oct 22 '15 at 13:17
  • For an example, see the video players in Grafika (https://github.com/google/grafika), particularly the use of AspectFrameLayout in PlayMovieSurfaceActivity.java . It uses a custom FrameLayout to alter the View size to maintain the proper aspect ratio. – fadden Oct 22 '15 at 16:11
  • This Might help you, Refer this http://stackoverflow.com/a/8830491/1542636 – GK_ Oct 22 '15 at 18:01

0 Answers0