grantland / android-autofittextview

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

New support library for autofit text #91

Open eduardbosch opened 7 years ago

eduardbosch commented 7 years ago

Hi @grantland,

Thanks for this great library. I've been using it for some months now, and it works great.

Today I switched to the new Android Support Library 26.0.0-beta2 that allow Autosizing Textviews. It's working great for me. I'm not really sure if it replaces this library entirely, but maybe you can take it a look or merge your library with the new TextViews functionality for better performance / compatibility.

https://developer.android.com/preview/features/autosizing-textview.html

eduardbosch commented 7 years ago

This PR might be related #90

matthewkrueger commented 7 years ago

Thanks for this library! It served a purpose where Google failed hard. iOS has had this since the early days.

I have switched to the support library version, but I forever thank you for making the lives of Android developers easier in the interim!

darekdeo commented 6 years ago

This Support Library as stated in documentation is not recommended when using with wrap_content. I have tested text autosize and it can cut text when for example View height is calculated before text size.