I have 4 ImageViews that are horizontally placed in a LinearLayout. I need 2 things:
- If the space is limited by their height, I want them to be distributed equally on the LinearLayout, i.e. with equal spaces between each other
- If the space is limited by their width, I want the images to shrink so that they will all fit in the view.
Any ideas?
Thanks!
You could try
weightSumYou can also set minHeight and minWidth