我已将我的SDK更新到最新版本,但是现在我遇到了一个lint错误。
错误:预期的资源类型为animator [ResourceType]
该错误出现在以下这一行:
AnimatorInflater.loadAnimator(context, R.anim.right_slide_in)
所引用的资源/res/anim/right_slide_in.xml
如下:
<?xml version="1.0" encoding="utf-8"?>
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator"
android:valueTo="0"
android:valueFrom="1.0"
android:propertyName="xFraction"
android:valueType="floatType"
android:duration="450" />
以前一直都可以工作,为什么现在会出现错误?有人能解释一下吗?