K
K
Kostya Bakay2017-08-31 19:37:42
Android
Kostya Bakay, 2017-08-31 19:37:42

How to implement Layout Manager for fixed size layout with different number of images?

I am developing an application where the user can create notes. The note contains a title, images, and text. A note has multiple images, but can also contain a single image or white space. The user adds pictures one by one. Pictures have a container layout with a fixed height of 200dp. I have to add an unknown number of images to this container, where it will be beautifully combined from them without empty space, like in the picture below. How can I implement this?
Creating notes
75742d8c550442c4a7684872a75c6366.jpg
I need to implement something like this
7186bd4cb1a34ffe94922d007742f911.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kostya Bakay, 2017-09-28
@kostyabakay

To solve the problem, I used Flexbox from Google.

A
aol-nnov, 2017-08-31
@aol-nnov

I think you can get inspired by something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question