What are the actual ms time values for Android's animTime constants?

Current values (since 3.x):

  • config_shortAnimTime=200
  • config_mediumAnimTime=400
  • config_longAnimTime=500

And the duration of the activity open/close and fragment open/close animations:

  • config_activityShortDur=150
  • config_activityDefaultDur=220

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.


Here we go:

config_longAnimTime   = 400
config_mediumAnimTime = 300
config_shortAnimTime  = 150