Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't get R.anim in my project

I started some android programming and I am trying to do some animation in my activity. but all references are using interpolators and files from res/anim folder which I can't find in my project. Also, when I am using R.anim I am getting an error that it doesn't exist.

Is there any API to download?

Thank you

like image 515
wassim Avatar asked Nov 30 '22 15:11

wassim


2 Answers

You need to import the R file. You should see something like below in the import list of your class file.

import <your.app.package>.R
like image 85
500865 Avatar answered Dec 10 '22 12:12

500865


I had the same problem, and none of the solutions above worked. In the end, I got it to work by referencing it as android.R.anim as explained here.

like image 25
Georg Avatar answered Dec 10 '22 12:12

Georg