Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8326257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:42:22+00:00 2026-06-09T00:42:22+00:00

I have a TextView for which i register the following animation: mScaleAnimation = new

  • 0

I have a TextView for which i register 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 fine and looks really cool 🙂

My only concern is the following: When i look at logcat, it is totally unusable since as long as the animation ist running, i keep getting these logs over and over multiple times a 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]

The TextView uses a custom font/typeface (which is in otf format).

Any ideas what causes that heavy work for the font cache?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:42:23+00:00Added an answer on June 9, 2026 at 12:42 am

    I believe that your cache is getting killed because you are generating tons of TypeFace objects.
    I’m guessing that this is on a pre ICS release?
    There is a bug that holds TypeFaces and does not free it up correctly.
    So when your animating, it keeps creating new objects for each position and they are leaked and never cleaned up.

    I found someone’s suggestion to create a TypeFace cache with a HashMap. You can check this post out for more details. Custom fonts and XML layouts (Android)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a TextView which I've assigned both an onTouchListener and an onClickListener: myTextView.setOnTouchListener(new
I am new to Android.I have created a dynamic textview which is displayed on
I have a TextView which i set the text using setText(). In properties, I
I have a Custom ListView which has an ImageView and a TextView. and i
I have a custom ListView in which there are 2 buttons and a textview
In my app I have a textView which contains real-time messages from my app,
I have to set the style for a TextView which is created programmatically. How
I’m new to android,I have an activity class which fetches Json string from url
Guys i have a textview which i need it to be blinking please help
I have textview which contains urls like www.google.com . for this textview a have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.