Currently, the documentation for Android clearly does not recommend using resources directly from android.R.* , Since there are changes to them on each version of the platform. Even some resources disappear from one version to another, so you should not rely on them. On the other hand, many resources are private and inaccessible from developer code.
The safest (and recommended) way is to simply copy and paste the resources you need (in this case, animations) from the source version of the Android version that you want into your own code, and use them through regular R.* .
You can view the Android source code in different ways, as described in [1].
[1] Where can I find Android source code on the Internet?
source share