I have followed the tutorial at:
The code is fine until I get to:
Animation shake = AnimationUtils.loadAnimation(this, R.anim.shake);
It would appear that R.anim does not exist, eclipse suggests creating a field in in type R or creating a constant in type R. Correct me if I’m wrong but I don’t believe either are the solution.
I am running Google APIs, platform 2.2, API 8 – I have tried higher levels but it didn’t make a difference. All that I am trying to accomplish is a button shake on click…
Any feedback is appreciated,
Thanks
You need to create the shake animation xml file. It will reside in
and it would look like this:
You then also need the interpolator (cycle_7.xml):
These files can both be found in