public Paint getPaintCourseText() { if (paintCourseText == null) { paintCourseText = new Paint(); paintCourseText.setColor(Color.WHITE); float size = TypedValue.applyDimension( TypedValue.COMPLEX_UNIT_SP, 12, App.getInstance().getResources().getDisplayMetrics()); paintCourseText.setTextSize(size); paintCourseText.setAntiAlias(true); } return paintCourseText; }
public int getSizeFromStyleFile(int fileSize) { return ImageHlp.changeToSystemUnitFromDP(App.getInstance(), fileSize / 2); }