grantland / android-autofittextview

A TextView that automatically resizes text to fit perfectly within its bounds.
Apache License 2.0
4.27k stars 689 forks source link

wrong size on Nexus 5 #34

Closed SimonStefan closed 9 years ago

SimonStefan commented 9 years ago

I used AutofitTextView with xml and the text was nearly two times larger on a Nexus 5 (API21) than on Nexus 7 (2013, API21) or Nexus 4 (API15). Using "AutofitHelper.create(textView);" with a normal TextView worked. Maybe there is a problem with xxhdpi devices?

grantland commented 9 years ago

Would you be able to post a screenshot and details of what attributes you're using? There also was an issue where the minTextSize wasn't set properly (used px instead of sp), have you tried master?

https://github.com/grantland/android-autofittextview/issues/23

SimonStefan commented 9 years ago

No, I only tried the current version on Maven and have already refactored the code. To set the AutofitHelper programmatically was a really quick fix, so in my opinion you can close this issue. I just wanted it to be report, if somebody else has the same issue.