adnan-SM / TimelyTextView

Animated TextView like Timely app
920 stars 153 forks source link

Clipping on the bottom #21

Open Sayujya opened 9 years ago

Sayujya commented 9 years ago

The bottom part of the number is clipped.

adnan-SM commented 9 years ago

Maybe your not setting the height & width properly ? Try reducing the height and width and see if it works

Sayujya commented 9 years ago

I understand that height controls the text size?

  1. If I set the height to 30dp and textsize to 25dp, the clipping still occurs.
  2. If I go to the TimelyView class itself and change the height to 95% of the value from getMeasuredHeight(), the text is no longer clipped.
dwillie commented 8 years ago

Is there any resolution on this, or known fix?

Sayujya commented 8 years ago

You have to go into the class and set up the canvas size or something. Since it inherits from View and not TextView, there is not other way other than to do so manually.

You can do what I mentioned above.