Probably you are mixing two apis. There are two cases:
-
If targeting below 3.0 or using support v4 fragments: You have to use the old animations api, that is, the one you are using (they go into anim/, and are
R.anim.thing
) -
If you are targeting above 3.0 and using native fragments: You have to use the new animation apis, that is, ObjectAnimators (they go into animator/ and are
R.animator.thing
).