Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mTypefaceRobotoThin = Typeface.createFromAsset(getAssets(), "robotothin.ttf");
mTypefaceRobotoLight = Typeface.createFromAsset(getAssets(), "robotolight.ttf");
mBackgroundPaintFilled = new Paint();
mBackgroundPaintFilled.setColor(getResources().getColor(R.color.color_bg));
mBackgroundPaintNotFilled = new Paint();
mBackgroundPaintNotFilled.setColor(getResources().getColor(R.color.color_gray));
mPaintHourText = new Paint();
mPaintHourText.setColor(Color.WHITE);
mPaintHourText.setAntiAlias(true);
mPaintHourText.setTextSize(90);
mPaintHourText.setTypeface(mTypefaceRobotoThin);
mPaintMinuteText = new Paint();
mPaintMinuteText.setColor(Color.WHITE);
mPaintMinuteText.setAntiAlias(true);
mPaintMinuteText.setTextSize(45);
mPaintHourText.setTypeface(mTypefaceRobotoLight);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment