{"id":1381,"date":"2017-12-01T05:57:25","date_gmt":"2017-12-01T05:57:25","guid":{"rendered":"http:\/\/abhiandroid.com\/androidstudio\/?page_id=1381"},"modified":"2018-06-05T06:53:11","modified_gmt":"2018-06-05T06:53:11","slug":"create-anim-folder-animation-file","status":"publish","type":"page","link":"https:\/\/abhiandroid.com\/androidstudio\/create-anim-folder-animation-file","title":{"rendered":"How To Create Anim Folder &#038; Animation File In Android Studio [Step by Step]"},"content":{"rendered":"<p>To apply Animations to our Application sometimes we need to make an anim folder in Android Studio to store animation file under the resource folder of our application. Basically there are two options for resource types. You can set any of these two given below:<\/p>\n<ul>\n<li>animator\/ -XML files that define property animations.<\/li>\n<li>anim\/ &#8211; XML files that define tween animations<\/li>\n<\/ul>\n<p>In this tutorial we will discuss how you can easily create anim folder\/directory in Android Studio to store all your animations xml files in one place.<\/p>\n<h4><strong>How To Create Anim Folder &amp; Animation File In Android Studio [Step by Step]<\/strong><\/h4>\n<p><strong>Step 1:\u00a0<\/strong>Right click the res folder.<\/p>\n<p>Then<strong>\u00a0<\/strong>Go to<strong> res&gt;New&gt;Android resource<\/strong> <strong>directory<\/strong> as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1400\" src=\"\/androidstudio\/wp-content\/uploads\/2017\/12\/Android-Resource-Directory-Animation.jpg\" alt=\"Android Resource Directory Animation\" width=\"485\" height=\"294\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/Android-Resource-Directory-Animation.jpg 485w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/Android-Resource-Directory-Animation-300x182.jpg 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/p>\n<p><strong>Step 2:\u00a0<\/strong>Give the directory name as anim and change the resource type\u00a0 to anim or animator according to your choice.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1401\" src=\"\/androidstudio\/wp-content\/uploads\/2017\/12\/anim-folder-animation-android-studio.jpg\" alt=\"Anim folder animation android studio\" width=\"821\" height=\"463\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/anim-folder-animation-android-studio.jpg 821w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/anim-folder-animation-android-studio-300x169.jpg 300w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/anim-folder-animation-android-studio-768x433.jpg 768w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/p>\n<p><strong>Step 3:\u00a0<\/strong>Now anim folder is created. Right click on the anim. Then go to\u00a0<strong>anim &gt; New&gt; Animation resource file.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1403\" src=\"\/androidstudio\/wp-content\/uploads\/2017\/12\/Animation-Resource-File-Android-Studio.jpg\" alt=\"Animation Resource File Android Studio\" width=\"656\" height=\"319\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/Animation-Resource-File-Android-Studio.jpg 656w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/Animation-Resource-File-Android-Studio-300x146.jpg 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/p>\n<p><strong>Step 4:\u00a0<\/strong>Give the file any name and click OK. In our case we named it as roundanimation.xml<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1404\" src=\"\/androidstudio\/wp-content\/uploads\/2017\/12\/create-animation-file-android-studio.jpg\" alt=\"Create animation file android studio\" width=\"821\" height=\"465\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/create-animation-file-android-studio.jpg 821w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/create-animation-file-android-studio-300x170.jpg 300w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/create-animation-file-android-studio-768x435.jpg 768w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/p>\n<p><strong>Step 5:\u00a0<\/strong>Now our<strong> roundanimation.xml<\/strong> is created.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1405\" src=\"\/androidstudio\/wp-content\/uploads\/2017\/12\/animation-file-created-android-studio.jpg\" alt=\"Animation file created android studio\" width=\"899\" height=\"276\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/animation-file-created-android-studio.jpg 899w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/animation-file-created-android-studio-300x92.jpg 300w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/12\/animation-file-created-android-studio-768x236.jpg 768w\" sizes=\"auto, (max-width: 899px) 100vw, 899px\" \/><\/p>\n<p>It&#8217;s done. Now you can add your code in newly created animation file.<\/p>\n<p><strong>Related Read:\u00a0<a href=\"\/materialdesign\/animation\">Animation Tutorial With Example In Android Studio<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To apply Animations to our Application sometimes we need to make an anim folder in Android Studio to store animation file under the resource folder of our application. Basically there are two options for resource types. You can set any of these two given below: animator\/ -XML files that define property animations. anim\/ &#8211; XML &hellip; <a href=\"https:\/\/abhiandroid.com\/androidstudio\/create-anim-folder-animation-file\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How To Create Anim Folder &#038; Animation File In Android Studio [Step by Step]<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"home.php","meta":{"footnotes":""},"class_list":["post-1381","page","type-page","status-publish","hentry"],"psp_head":"<title>How To Create Anim Folder &amp; Animation File In Android Studio [Step by Step] \u2013 Abhi Android<\/title>\r\n<meta name=\"description\" content=\"In this tutorial we will discuss how you can easily create anim folder\/directory in Android Studio to store all your animations xml files in one place.\" \/>\r\n<meta name=\"robots\" content=\"index,follow\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/abhiandroid.com\/androidstudio\/create-anim-folder-animation-file\" \/>\r\n","_links":{"self":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages\/1381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/comments?post=1381"}],"version-history":[{"count":2,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages\/1381\/revisions"}],"predecessor-version":[{"id":1427,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages\/1381\/revisions\/1427"}],"wp:attachment":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/media?parent=1381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}