{"id":626,"date":"2016-03-20T05:43:47","date_gmt":"2016-03-20T05:43:47","guid":{"rendered":"http:\/\/abhiandroid.com\/androidstudio\/?page_id=626"},"modified":"2018-06-05T06:53:53","modified_gmt":"2018-06-05T06:53:53","slug":"how-to-create-drawable-resource-xml-file-in-android-studio","status":"publish","type":"page","link":"https:\/\/abhiandroid.com\/androidstudio\/how-to-create-drawable-resource-xml-file-in-android-studio","title":{"rendered":"How To Create Drawable Resource XML File in Android Studio"},"content":{"rendered":"<p>Drawable Resource XML is mostly created in drawable folder and is used in Android to add more customization for views. Here are step by step how to create new\u00a0Drawable Resource XML in Android Studio.<\/p>\n<hr \/>\n<h4><strong>How To Create Drawable Resource XML File in Android Studio:<\/strong><\/h4>\n<p><span style=\"color: #008000;\"><strong>Step 1: <\/strong><\/span>Firstly, Right Click on drawable as shown in figure below.<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-633\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/02\/Right-Click-on-drawable.jpg\" alt=\"Right Click on drawable\" width=\"502\" height=\"365\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/02\/Right-Click-on-drawable.jpg 502w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/02\/Right-Click-on-drawable-300x218.jpg 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/center><span style=\"color: #008000;\"><strong>Step 2: <\/strong><\/span>After that Go New &gt; Drawable resource file as shown in figure below.<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-634\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/02\/Click-on-drawable-resource-XML-file.jpg\" alt=\"Click on drawable resource XML file\" width=\"485\" height=\"379\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/02\/Click-on-drawable-resource-XML-file.jpg 485w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/02\/Click-on-drawable-resource-XML-file-300x234.jpg 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/center><span style=\"color: #008000;\"><strong>Step 3: <\/strong><\/span>After that New Resource file dialog box open on your computer screen. Enter File name in the text box and then press OK. Here File name is custom_button.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>Important Note: <\/strong><\/span>File names must start with a lowercase letter.<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-636\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/02\/Enter-file-name-custom_button.jpg\" alt=\"Enter file name custom_button\" width=\"633\" height=\"301\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/02\/Enter-file-name-custom_button.jpg 633w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/02\/Enter-file-name-custom_button-300x143.jpg 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/center><span style=\"color: #008000;\"><strong>Step 4: <\/strong><\/span>After that your drawable resource XML file will be created as shown in figure below.<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-637\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/02\/Your-drawable-resource-XML-file-will-be-created.jpg\" alt=\"Your drawable resource XML file will be created\" width=\"687\" height=\"329\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/02\/Your-drawable-resource-XML-file-will-be-created.jpg 687w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/02\/Your-drawable-resource-XML-file-will-be-created-300x144.jpg 300w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Drawable Resource XML is mostly created in drawable folder and is used in Android to add more customization for views. Here are step by step how to create new\u00a0Drawable Resource XML in Android Studio. How To Create Drawable Resource XML File in Android Studio: Step 1: Firstly, Right Click on drawable as shown in figure &hellip; <a href=\"https:\/\/abhiandroid.com\/androidstudio\/how-to-create-drawable-resource-xml-file-in-android-studio\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How To Create Drawable Resource XML File in Android Studio<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"home.php","meta":{"footnotes":""},"class_list":["post-626","page","type-page","status-publish","hentry"],"psp_head":"<title>How To Create Drawable Resource XML File in Android Studio \u2013 Abhi Android<\/title>\r\n<meta name=\"description\" content=\"Drawable Resource XML is mostly created in drawable folder and is used in Android to add more customization for views. Here are step by step how to create new Drawable Resource XML in Android Studio.\" \/>\r\n<meta name=\"robots\" content=\"index,follow\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/abhiandroid.com\/androidstudio\/how-to-create-drawable-resource-xml-file-in-android-studio\" \/>\r\n","_links":{"self":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages\/626","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/comments?post=626"}],"version-history":[{"count":1,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages\/626\/revisions"}],"predecessor-version":[{"id":1428,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages\/626\/revisions\/1428"}],"wp:attachment":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/media?parent=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}