https://kotlinlang.org logo
e

edvin

11/17/2016, 7:53 PM
I think you should use the already available methods to perform calculations on size, like
computePrefWidth
etc. They should check how many children they have, ask them how wide they want to be and add padding, then return that number. I haven't thought this completely through, so there may be issues. I'd like to help out with this, but I won't have time before next week :((