blob: 1e93e1a2b43339309a31fccdd831439206e8aab9 [file] [log] [blame]
package com.android.mail.bitmap;
import android.graphics.drawable.Drawable;
/**
* {@link Drawable}s that support a parallax effect when drawing should
* implement this interface to receive the current parallax fraction to use when
* drawing.
*/
public interface Parallaxable {
/**
* @param fraction the vertical center point for the viewport, in the range [0,1]
*/
void setParallaxFraction(float fraction);
}