Android 包括
config_longAnimTime
config_mediumAnimTime
config_shortAnimTime
但这些常量标识的实际值在毫秒方面没有意义。我确信它们会被编译成有用的值,并且我可以用代码来确定它们,但我确信其他人知道答案 - 更重要的是,我确信其他人会寻找它们。因此,请发布实际值作为答案,并为大家节省一点时间。
最佳答案
直接读取属性:
getResources().getInteger(android.R.integer.config_shortAnimTime);
getResources().getInteger(android.R.integer.config_mediumAnimTime);
getResources().getInteger(android.R.integer.config_longAnimTime);
不要使用硬编码值:某些设备提供了加速动画的选项:硬编码值会忽略该设置。
关于android - Android 的 animTime 常量的实际毫秒时间值是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3337513/