首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >存根类返回存根(“AnimatorSet!”)

存根类返回存根(“AnimatorSet!”)
EN

Stack Overflow用户
提问于 2017-02-17 21:38:14
回答 1查看 146关注 0票数 0

我试着制作了一个android FAB动画工具栏。我使用这个示例https://github.com/vpaliyX/FAB-Toolbar-Example来检查它是如何工作的,但我注意到了一件奇怪的事情。克隆示例中的AnimatorSet类看起来很好,但是当我尝试在我的项目中打开它时,我得到了如下信息。是实现问题还是导入问题?

代码语言:javascript
复制
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!");
        }
    }
}
EN

回答 1

Stack Overflow用户

发布于 2017-02-17 22:16:53

如果你想查看android框架类的源代码,那么你需要从SDK管理器下载它们。打开SDK管理器,查找"sources for Android x“,其中x是您正在开发的android版本,然后下载它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42299391

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档