我在 Android Studio 中有这个 xml 文件,称为启动。
我有这条线
final Animation SplashAnimation = AnimationUtils.loadAnimation(getBaseContext(), R.anim.startup);
我试图在这一行定义一个startup.xml文件,但Android Studio找不到它。
但是 Android Studio 用红色突出显示启动,我不知道为什么? Android Studio 仅在我输入 R.animator.startup 时才找到它,但同样用红线下划线。
对于这个问题有什么帮助吗?
最佳答案
从这里阅读:https://meta.stackexchange.com/questions/1555/mark-a-comment-as-answer-to-a-question
来 self 的评论:“将动画文件夹重命名为 res/anim 解决了您的问题”
关于java - R.anim.filename 突出显示红色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33813137/