It is necessary to realize the viewing of the user's VKontakte tape, in principle, everything is fine, but I cannot understand how to implement the display of attached photos, videos and music in the post? How to implement it correctly? Maybe someone has examples? It is also interested in how to implement the display of attached photos and videos with such tiles . Naturally the size of the photos are known.

Simply put, here are examples of viewing VKontakte posts, with attached photos, videos and music. How to implement the same?

enter image description here enter image description here

    2 answers 2

    TwoWayView from Lucas Rocha can help. Here is the link to gitHub: https://github.com/lucasr/twoway-view/

    RecyclerView , CardView , custom layout of elements + Google. This is the most detailed answer to your question.

    • "custom markup of elements" can you explain? What is it like? - antop95
    • But how to lay out a photo and video with such a tile? How to google it? - antop95
    • @ antop95, "custom" means your own, hand-written to your needs. Most likely there are no ready-made ways to do this. But you can try googling "android image gallery view / widject" - Yuriyi