Font size too large to fit in cache

It is really a bug in the Android OS inside the Hardware Acceleration modules.
I think that the best way is to ask the system to avoid HW acceleration on TextViews that contain large size text.
To do so, just add in the code:

TextView bigText = (TextView) findViewById(R.id.bigtext);
bigText.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

Leave a Comment