grantland / android-autofittextview

A TextView that automatically resizes text to fit perfectly within its bounds.
Apache License 2.0
4.27k stars 688 forks source link

Request: adopt StrokedTextView - as you have solved the measurement issues #18

Closed RoundSparrow closed 9 years ago

RoundSparrow commented 10 years ago

Hi,

Request that you integrate a reworked StrokedTextView into your app.

reference: https://android.googlesource.com/platform/packages/apps/Launcher2/+/android-4.2_r1/src/com/android/launcher2/StrokedTextView.java

The problem with StrokedTextView is that if you use a heavy stroke - say 12 - the TextView gets cropped on the right. It just doesn't expand the canvas properly to account for the addition of the outline.

I've looked at all available variations of "How to outline a TextView" I could find - and they all suffer the problem of not expanding the canvas width calculations.

Thank you.

grantland commented 10 years ago

Try 0.2.0, it might solve your issue.

grantland commented 9 years ago

Closing due to inactivity--feel free to reopen.