错误:类型anim [ResourceType] Android Studio的预期资源

时间:2017-08-27 00:29:11

标签: java android

我无法生成签名的apk

G:\项目\ APPS \加\应用\ SRC \主\的java \ COM \博克\吸尘器\ UI \ RubbishCleanActivity.java 错误:anim [ResourceType]类型的预期资源

RubbishCleanActivity.java文件

public void onClickClear() {
    getActionBar().hide();
    this.layoutContainer1.setVisibility(View.GONE);
    this.layoutContainer2.setVisibility(View.VISIBLE);
    Animation anim = AnimationUtils.loadAnimation(this.mContext, R.anim.rote_anim);
    anim.setAnimationListener(new AnimationListener() {
        public void onAnimationEnd(Animation animation) {
            RubbishCleanActivity.this.doneRocket.setVisibility(View.GONE);
            RubbishCleanActivity.this.doneImg.setImageResource(R.drawable.ic_done_white_128dp_2x);
            imageRush.setVisibility(View.GONE);
            RubbishCleanActivity.this.doneBtn.setVisibility(0);
        }

        public void onAnimationRepeat(Animation animation) {
        }

        public void onAnimationStart(Animation animation) {
        }
    });
    this.doneRocket.setAnimation(anim);
    if (this.mCleanerService != null && !this.mCleanerService.isScanning() && !this.mCleanerService.isCleaning() && this.mCleanerService.getCacheSize() > 0) {
        this.mAlreadyCleaned = false;
        this.mCleanerService.cleanCache();
    }
}

@TargetApi(19)
private void setTranslucentStatus(boolean on) {
    Window win = getWindow();
    WindowManager.LayoutParams winParams = win.getAttributes();
    if (on) {
        winParams.flags |= 67108864;
    } else {
        winParams.flags &= -67108865;
    }
    win.setAttributes(winParams);
}

private boolean isProgressBarVisible() {
    return this.mProgressBar.getVisibility() == 0;
}

private void showProgressBar(boolean show) {
    if (show) {
        this.mProgressBar.setVisibility(0);
        return;
    }
    this.mProgressBar.startAnimation(AnimationUtils.loadAnimation(this.mContext, 17432577));
    this.mProgressBar.setVisibility(View.GONE);
}

感谢您的帮助

0 个答案:

没有答案