Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio animation file

I am trying to create a frame by frame animation in android studio and can not figure out how to do it. I know how to do it in eclipse but in android studio there is no "new android xml file" with support for creating animation files. I have tried adding an XML file to the drawable folder and it moves it to the layouts folder. I have tried to code an animation-list but android studio acts like it does not exist. I can't seem to find anything online to help me. I have looked at developer.android.com which is helpful if your trying to figure out the code, but it does not help you with all the bits before that.

like image 772
Aaron Weid Avatar asked Dec 05 '14 02:12

Aaron Weid


1 Answers

In the project pane (defaults on the left side of the screen), make sure you are in the project view. If the upper left corner of the pane days "android" and has a robot icon, click it and select "project". Now click and select the "res" folder in the main source set tree. Right click on it and go to new -> android resource file. It should pop up a new dialog where you can name it, select what type (look for animation, animator or drawable animation), and even add qualifiers. Click done once you have set it up and your new file should be in the expected place.

like image 147
Larry Schiefer Avatar answered Sep 26 '22 08:09

Larry Schiefer