Today I released a small open source project called DynamicButtonStack. It lays out an array of buttons dynamically depending on the space available.

3 days later: With DynamicButtonStack, you don’t need to worry about text being cut off when localised.