FileDocCategorySizeDatePackage
FontSizeUtils.javaAPI DocAndroid 5.1 API1307Thu Mar 12 22:22:42 GMT 2015com.android.systemui

FontSizeUtils

public class FontSizeUtils extends Object
Utility class to update the font size when the configuration has changed.

Fields Summary
public static final float
LARGE_TEXT_SCALE
Constructors Summary
Methods Summary
public static voidupdateFontSize(android.view.View parent, int viewId, int dimensId)


             
        updateFontSize((TextView) parent.findViewById(viewId), dimensId);
    
public static voidupdateFontSize(android.widget.TextView v, int dimensId)

        if (v != null) {
            v.setTextSize(TypedValue.COMPLEX_UNIT_PX,
                    v.getResources().getDimensionPixelSize(dimensId));
        }