/**
* Constructor.
*
* @param animationDrawable the {@link AnimationDrawable}.
* @param callback the client's {@link Callback} implementation. This is usually the {@link View} the has the
* {@link AnimationDrawable} as background.
*/
public TakePictureAnimationDrawableCallback(AnimationDrawable animationDrawable, Callback callback) {
super(animationDrawable, callback);
}
java类android.graphics.drawable.Drawable.Callback的实例源码
CaptureFragment.java 文件源码
项目:flying-photo-booth
阅读 26
收藏 0
点赞 0
评论 0
AnimationDrawableCallback.java 文件源码
项目:flying-photo-booth
阅读 26
收藏 0
点赞 0
评论 0
/**
* Constructor.
*
* @param animationDrawable the {@link AnimationDrawable}.
* @param callback the client's {@link Callback} implementation. This is usually the {@link View} the has the
* {@link AnimationDrawable} as background.
*/
public AnimationDrawableCallback(AnimationDrawable animationDrawable, Callback callback) {
mTotalFrames = animationDrawable.getNumberOfFrames();
mLastFrame = animationDrawable.getFrame(mTotalFrames - 1);
mWrappedCallback = callback;
}