我的问题是如何调整ArrayList<Keyframe>对象,使其适合函数PropertyValuesHolder.ofKeyframe(String propertyName,Keyframe...值)作为Keyframe...参数?我假设ofKeyframe()是一个varargs函数,所以考虑到这一点来寻找答案,尝试在ArrayList对象上使用toArray()函数,但没有成功。
发布于 2013-06-16 13:21:54
试一试
PropertyValuesHolder.ofKeyframe(String propertyName, yourList.toArray())http://developer.android.com/reference/java/util/ArrayList.html#toArray() http://developer.android.com/reference/java/util/ArrayList.html#toArray(T[])
https://stackoverflow.com/questions/17130429
复制相似问题