动画器集类返回运行时异常("Stub!" )



我尝试制作一个Android Fab动画工具栏。我正在使用此示例https://github.com/vpaliyx/fab-toolbar-example检查它的工作原理,但我注意到一件奇怪的事情。克隆示例中的Animatorset课看起来不错,但是当我尝试在项目中打开它时,我得到了这个。这是实施或导入问题?

package android.animation;
import android.animation.Animator;
import android.animation.TimeInterpolator;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public final class AnimatorSet extends Animator {
    public AnimatorSet() {
        throw new RuntimeException("Stub!");
    }
    public void playTogether(Animator... items) {
        throw new RuntimeException("Stub!");
    }
    public void playTogether(Collection<Animator> items) {
        throw new RuntimeException("Stub!");
    }
    public void playSequentially(Animator... items) {
        throw new RuntimeException("Stub!");
    }
    public void playSequentially(List<Animator> items) {
        throw new RuntimeException("Stub!");
    }
    public ArrayList<Animator> getChildAnimations() {
        throw new RuntimeException("Stub!");
    }
    public void setTarget(Object target) {
        throw new RuntimeException("Stub!");
    }
    public void setInterpolator(TimeInterpolator interpolator) {
        throw new RuntimeException("Stub!");
    }
    public TimeInterpolator getInterpolator() {
        throw new RuntimeException("Stub!");
    }
    public AnimatorSet.Builder play(Animator anim) {
        throw new RuntimeException("Stub!");
    }
    public void cancel() {
        throw new RuntimeException("Stub!");
    }
    public void end() {
        throw new RuntimeException("Stub!");
    }
    public boolean isRunning() {
        throw new RuntimeException("Stub!");
    }
    public boolean isStarted() {
        throw new RuntimeException("Stub!");
    }
    public long getStartDelay() {
        throw new RuntimeException("Stub!");
    }
    public void setStartDelay(long startDelay) {
        throw new RuntimeException("Stub!");
    }
    public long getDuration() {
        throw new RuntimeException("Stub!");
    }
    public AnimatorSet setDuration(long duration) {
        throw new RuntimeException("Stub!");
    }
    public void setupStartValues() {
        throw new RuntimeException("Stub!");
    }
    public void setupEndValues() {
        throw new RuntimeException("Stub!");
    }
    public void pause() {
        throw new RuntimeException("Stub!");
    }
    public void resume() {
        throw new RuntimeException("Stub!");
    }
    public void start() {
        throw new RuntimeException("Stub!");
    }
    public AnimatorSet clone() {
        throw new RuntimeException("Stub!");
    }
    public String toString() {
        throw new RuntimeException("Stub!");
    }
    public long getTotalDuration() {
        throw new RuntimeException("Stub!");
    }
    public class Builder {
        Builder() {
            throw new RuntimeException("Stub!");
        }
        public AnimatorSet.Builder with(Animator anim) {
            throw new RuntimeException("Stub!");
        }
        public AnimatorSet.Builder before(Animator anim) {
            throw new RuntimeException("Stub!");
        }
        public AnimatorSet.Builder after(Animator anim) {
            throw new RuntimeException("Stub!");
        }
        public AnimatorSet.Builder after(long delay) {
            throw new RuntimeException("Stub!");
        }
    }
}

如果您想查看Android Framework类的来源,则需要从SDK Manager下载它们。打开SDK Manager,查找" Android X >"的"源

最新更新