protected void drawText(String text1,String text2,int x,int y,Canvas c){
  if (textPaint == null) {
    Paint p=new Paint();
    p.setTypeface(RobotoLightTypeface.getInstance(context));
    p.setColor(textColor);
    p.setTextSize(14 * pixelDensity);
    this.textPaint=p;
  }
  float w=textPaint.measureText(text1,0,text1.length());
  int offset=(int)w / 2;
  c.drawText(text1,x - offset,y + (18f * pixelDensity),textPaint);
  w=textPaint.measureText(text2,0,text2.length());
  offset=(int)w / 2;
  c.drawText(text2,x - offset,y + (36f * pixelDensity),textPaint);
}

protected void drawText ( String text1 , String text2 , int x , int y , Canvas c ) { if ( textPaint == null ) { Paint p = new Paint ( ) ; p . setTypeface ( RobotoLightTypeface . getInstance ( context ) ) ; p . setColor ( textColor ) ; p . setTextSize ( 14 * pixelDensity ) ; this . textPaint = p ; } float w = textPaint . measureText ( text1 , 0 , text1 . length ( ) ) ; int offset = ( int ) w / 2 ; c . drawText ( text1 , x - offset , y + ( 18f * pixelDensity ) , textPaint ) ; w = textPaint . measureText ( text2 , 0 , text2 . length ( ) ) ; offset = ( int ) w / 2 ; c . drawText ( text2 , x - offset , y + ( 36f * pixelDensity ) , textPaint ) ; }
draw the text under the graphics
