如标题所述,“BaseInterpolator”无法解析为类型,我无法通过
包含import android.view.animation.BaseInterpolator;
我也包括 LinearInterpolator没有任何问题但是这个“BaseInterpolator”今天编译错误。
import android.view.animation.LinearInterpolator;
这个项目的SDK依赖是:
android:minSdkVersion="16"
android:targetSdkVersion="23"
感谢您的考虑。
最佳答案
你应该使用:
import android.view.animation.Interpolator;
BaseInterpolator
API 22 添加了进一步的抽象。使用 Interpolator
接口(interface)就可以了。
关于android - BaseInterpolator 无法解析为类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34879343/