Search code examples
javaandroidanimationtransitionr.java-file

Android - unable to access R.anim


I would like you to ask for help as I am unable to access to R.anim What I have done so far is, that I've created new project and wanted to use overridePendingTransition however, once I typed R.anim. all suggested options were: attr, dimen, drawable, id, layout, menu, string, style...

Where could be a problem ?

Thanks in advance


Solution

  • you dont have the folder /res/anim in your project. You need to create the anim folder inside /res and put respective XML files which will do the animation.

    In case you want to use inbuild animations then you should use android.R.anim instead.