If you are trying to achieve the above output then i would suggest using a Recyclerview with StaggeredGrid Layout.
Lee mas