flexbox-layout
flexbox-layout copied to clipboard
Equal width of children
Is it possible to have all children in one row to have the same width?
When I use the same flexGrow value for all children, they won't take up the same amount of space if their wrapped width is not the same. For example: two textviews side by side with a middle divider. If one textview contains 'abc' and the other 'abcdef', then the divider isn't shown in the middle of the screen.
I don't know if there is a combination of attributes I can use to achieve this result. The expected behavior would be to grow the children in a way that they end up with an equal width, or at least grow the smallest children and leave the biggest ones as they are if there's not enough space.