Code example for Drawable

Methods: setCallbacksetFilterBitmap

0
		rotateState.mPivotY = pivotY;
 
		init(); 
 
		if ( drawable != null ) {
			drawable.setCallback( this );
		} 
	} 
 
	/** 
	 * Instantiates a new animated rotate drawable. 
	 *  
	 * @param rotateState 
	 *           the rotate state 
	 * @param res 
	 *           the res 
	 */ 
	private AnimatedRotateDrawable( AnimatedRotateState rotateState, Resources res ) {
		mState = new AnimatedRotateState( rotateState, this, res );
		init(); 
	} 
 
	/** 
	 * Initialize 
	 */ 
	private void init() { 
		final AnimatedRotateState state = mState;
		mIncrement = 360.0f / state.mFramesCount;
		final Drawable drawable = state.mDrawable;
		if ( drawable != null ) {
			drawable.setFilterBitmap( true );
			if ( drawable instanceof BitmapDrawable ) {
				( (BitmapDrawable) drawable ).setAntiAlias( true );
			} 
		} 
	} 
Contextual code suggestions in your IDE  Get Codota for Java