Code example for Drawable

Methods: setLevel

0
//				Log.d(TAG, "onLevelChange scheduleSelf --"); 
				mDelta = -1;
				mAnimation.startScrolling(mTextXScale, 0);
				scheduleSelf(this, SystemClock.uptimeMillis() + DELAY);
			} 
			return mProgress.setLevel(level);
		} 
		 
		@Override 
		public void draw(Canvas canvas) {
			mProgress.draw(canvas);
 
			if (mAnimation.hasStarted() && !mAnimation.hasEnded()) {
				// pending animation 
				mAnimation.getTransformation(AnimationUtils.currentAnimationTimeMillis(), null);
				mTextXScale = mAnimation.getCurrent();
//				Log.d(TAG, "draw " + mTextX + " " + SystemClock.uptimeMillis()); 
			} 
			 
			Rect bounds = getBounds();
			float x = 6 + mTextXScale * (bounds.width() - mTextWidth - 6 - 6);