Android Auto Fit TextView

Reading time ~1 minute

Android framework provides no support for creating a TextView that can fit its content to its size.

There are some libraries out there that try to solve this problem, like:

But no one of them seems to work in every situation. Looking into stackoverflow I’ve come to this post which seems to hold the best working answer that I’ve tried.

Except when I’ve tried to use it when textAllCaps=”true”. The solution to this issue has already been reported in one of the comments. So I put up all togheter, and the result is the following AutoResizeTextView implementation:

Migrate to Android Studio 2.3

![Android Studio Logo]({{site.baseurl}}/images/android_studio_logo.png)### New featuresAndroid Studio 2.3 has finally been released in th...… Continue reading

Workshop su Google, Android e IoT

Published on June 18, 2016

A test rule for setting device locale

Published on May 09, 2016