Custom Font TextView Animation Causes Font Cache Hard Work

I have TextViewone for which I am registering the following animation:

mScaleAnimation = new ScaleAnimation(1f, 1.2f, 1f, 1.2f,
            mReferenceTextView.getWidth() / 2, mReferenceTextView
                    .getHeight() / 2);
    mScaleAnimation.setRepeatCount(Animation.INFINITE);
    mScaleAnimation.setRepeatMode(Animation.REVERSE);
    mScaleAnimation.setDuration(500);

It works great and looks really cool :)

My only concern is this: when I look at logcat, it is completely unusable, because while the animation is working, I keep getting these logs again and again several times per second :(

06-20 17:50:05.555: DEBUG/skia(14179): purging 213K from font cache [7 entries]
06-20 17:50:05.750: DEBUG/skia(14179): purging 196K from font cache [7 entries]
06-20 17:50:05.870: DEBUG/skia(14179): purging 202K from font cache [8 entries]
06-20 17:50:05.995: DEBUG/skia(14179): purging 190K from font cache [8 entries]

TextView uses its own font / font (which is in otf format).

Any ideas what causes the hard work for the font cache?

+5
source share
2 answers

, , TypeFace. , ICS? TypeFaces . , , , .

TypeFace HashMap. . XML (Android)

+1

, Skia HWUI . , . , , .

0

All Articles