The problem I am having is when changing localisation on the application the character length for some words is longer than the previous language therefore there are sizing issues with the buttons as they were initially made just for English.
English Locale Screenshot
Spanish Locale Screenshot
I know I am able to add android:maxLines="1" but this wouldn't solve my issue as the text is too large. I tried using a textview auto sizer for the text size but this hasn't solved the issue.
Does anyone have suggestions?
Thanks to @AdeelTurk for providing this answer. I was able to use autofittextview with my buttons but it was complex here is an example of how I used it with a LinearLayout which usually don't work with this API.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With