android-autofittextview
android-autofittextview copied to clipboard
how to get origin text size
getTextSize() return max value of textSize, how to get current text size?
Hey @walterFeng not sure if you are aware that the standard Android TextView now supports 'auto size' text out-of-the-box see here. It may return the correct size :)
thanks @sjaramillo10 . but in Autosizing TextViews, the text box is the specified height not width:
<TextView
android:layout_width="match_parent"
android:layout_height="200dp"
android:autoSizeTextType="uniform" />
it is not working:
<TextView
android:layout_width="200dp"
android:layout_height="wrap_content"
android:autoSizeTextType="uniform" />