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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With