AutoFitTextView
AutoFitTextView copied to clipboard
AutoResizeTextView doesn't wrap content when setting Typeface
I am using AutoResizeTextView
in FrameLayout
and I am setting custom typeface.
There is space at the end of AutoResizeTextView
[similar to what bottomPadding would produce].
When I don't set Typeface
, it works fine.
I think the issue is, AutoResizeTextView
is not considering the new Typeface
in calculation, As the height of AutoResizeTextView
remains same[as when system default typeface is used] when using non-default typeface, and the difference shows up as a gap, I am sure, if my default and non default typeface would be switched, then the text shown will be truncated, due to insufficient space.[I have not tested this]
Can you please put a screenshot and a super-tiny sample project to show the issue?