Open alexandre-g opened 8 years ago
Thank you for good issue.
I have implemented sample layout like this for fitting text size to the TextView. https://github.com/ssomai/ScalableLayout/blob/master/sample_scalablelayout/src/main/res/layout/activity_main.xml I imported android-autofittextview https://github.com/grantland/android-autofittextview
If I misunderstood, please re-issue. :) Thank you.
Hi there, thanks for the great layout. Works well.
I have a slight problem with localisations though - since the strings in different languages are different lengths, I need to set a different text size for each language. Is there a way to make text shrink/expand to fit the
TextView
?I have a custom
TextView
implementation that does this and works well when used outside of theScalableLayout
, but does not work when placed within - theScalableLayout
sizing logic seems to have the final word.If there is no way to do this now, I think it would be a great addition as you often care more about what area the text occupies rather then the font size.