Android: Adaptive image view that changes size accordingly like on twiter

been trying to show images the same way its shown on twitter, which probably changes according to count of images and.. size? for example:

Android: Adaptive image view that changes size accordingly like on twiter

Android: Adaptive image view that changes size accordingly like on twiter

Android: Adaptive image view that changes size accordingly like on twiter

would love to know the best way to do the same thing on my app.

Vlayout Alibaba, you may want the one plus N layout.