Code example for Paint

Methods: getTextSize, setAlpha

0
				mTextXScale = mAnimation.getCurrent();
//				Log.d(TAG, "draw " + mTextX + " " + SystemClock.uptimeMillis()); 
			} 
			 
			Rect bounds = getBounds();
			float x = 6 + mTextXScale * (bounds.width() - mTextWidth - 6 - 6);
			float y = (bounds.height() + mPaint.getTextSize()) / 2;
			mOutlinePaint.setAlpha(mActive? 255 : 255 / 2);
			mPaint.setAlpha(mActive? 255 : 255 / 2);
			canvas.drawText(mText, x, y, mOutlinePaint);
			canvas.drawText(mText, x, y, mPaint);
		} 
 
		@Override 
		public int getOpacity() { 
			return PixelFormat.TRANSLUCENT;
		} 
 
		@Override 
		public void setAlpha(int alpha) {
		}