I need to use autosizing in TextView below API 26, so I read this: https://developer.android.com/guide/topics/ui/look-and-feel/autosizing-textview
The library provides support to Android 4.0 (API level 14) and higher. The android.support.v4.widget package contains the TextViewCompat class to access features in a backward-compatible fashion.
So, I'm adding this in gradle:
implementation 'com.android.support:support-v4:28.0.0'
But now, how to use TextViewCompat in xml file? I can't find any info about that in the documentation or statckoverflow. I can see other persons using android.support.v7.widget.AppCompatTextView but that TextView depends on support-v7 extra gradle library and it's not the TextViewCompat the documentation is talking about.
How to use TextViewCompat for autosizing below api 26?
This Library will work for you.
hope to be useful.