is there easy way to create a 2x2 grid layout in w...
# android
t
is there easy way to create a 2x2 grid layout in which am showing 4 video tiles dynamically? There can be only one video, in that case it should take up the whole screen, in case of 2 it should divide the layout into 2 equal parts and so on. Also I need to take care of aspect ratio as video coming from 16:9 camera will be 16:9 and from mobile it can be 3:4 or 4:3 depending on orientation. If you have any suggestion please let me know.
google 1
stackoverflow 1
s
you can use
GridLayoutManager
in conjuction w/
GridLayoutManager.SpanSizeLookup