android - BaseInterpolator 无法解析为类型

标签 android sdk include

如标题所述,“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/

相关文章:

android - 运行 Eclipse 后 "Failed to initialize Monitor Thread: Unable to establish loopback connection"

java - 如何使用 Eclipse 检查调试符号状态?

ios - NSUserDefaults 和 iOS 框架/库

c++ - 充斥着标识符错误

android - 状态栏通知自动启动 Activity

安卓工作室 : Can not choose signature version

c++ - 用 SDK c++ 打包 indesign 文档

c++ - 全局使用公共(public)变量

javascript - 在外部文件和目录结构中存储 jquery 代码?

ANDROID:加权线性列表按钮消失