简体   繁体   中英

Android gridview/imageholder dynamic layout

I'm having image holder with fixed height and width. Based on user upload images, I want to make image space dynamically change like facebook images on the post.

1.For one image - allocate full space
2.For two images - divide half
3 For three images. top half two image and bottom one image.

How I can I make this division. ?

Try Google's New Flex Box Layout

FlexBox Layout

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM