Skip to content

Instantly share code, notes, and snippets.

@iammert
Created July 3, 2015 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iammert/caac0681752b5778c3db to your computer and use it in GitHub Desktop.
Save iammert/caac0681752b5778c3db to your computer and use it in GitHub Desktop.
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