Android Utililty Methods Text Resize

List of utility methods to do Text Resize


The list of methods to do Text Resize are organized into topic(s).


intresizeTextSize(int screenWidth, int screenHeight, int textSize)
resize Text Size
float ratio = 1;
try {
    float ratioWidth = (float) screenWidth / 480;
    float ratioHeight = (float) screenHeight / 800;
    ratio = Math.min(ratioWidth, ratioHeight);
} catch (Exception e) {
return Math.round(textSize * ratio);