문제

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

도움이 되었습니까?

해결책

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.

다른 팁

Since u didnt created Directory name anim in the res directory u cant access nothing there.. if u want to access Android Animation use

android.R.anim 

instand.

Create anim directory from res dir and put animation file into anim directory and clean the project then try to access.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top