Android includes
config_longAnimTime config_mediumAnimTime config_shortAnimTime
but the actual values identified by these constants don't make sense as milliseconds. I'm sure they get compiled into useful values, and I can determine them with code, but I'm sure someone else knows the answer - and, more to the point, I'm sure other people will be looking for them. So please post the actual values as an answer and save everyone a little bit of time.
Directly read the property:
getResources().getInteger(android.R.integer.config_shortAnimTime); getResources().getInteger(android.R.integer.config_mediumAnimTime); getResources().getInteger(android.R.integer.config_longAnimTime);
Don't use a hard-coded value: some devices provide an option to speed up animations: a hard-coded value would ignore that setting.
Current values (since 3.x):
And the duration of the activity open/close and fragment open/close animations:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With