AutoFitTextView icon indicating copy to clipboard operation
AutoFitTextView copied to clipboard

AutoResizeTextView doesn't wrap content when setting Typeface

Open codesForLiving opened this issue 7 years ago • 1 comments

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]

codesForLiving avatar Aug 25 '16 11:08 codesForLiving

Can you please put a screenshot and a super-tiny sample project to show the issue?

AndroidDeveloperLB avatar Aug 28 '16 06:08 AndroidDeveloperLB