FontSizeUtilspublic 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 |
Methods Summary |
---|
public static void | updateFontSize(android.view.View parent, int viewId, int dimensId)
updateFontSize((TextView) parent.findViewById(viewId), dimensId);
| public static void | updateFontSize(android.widget.TextView v, int dimensId)
if (v != null) {
v.setTextSize(TypedValue.COMPLEX_UNIT_PX,
v.getResources().getDimensionPixelSize(dimensId));
}
|
|