{"id":2062,"date":"2023-09-05T11:33:16","date_gmt":"2023-09-05T11:33:16","guid":{"rendered":"https:\/\/aryalspace.com\/?p=2062"},"modified":"2023-09-06T06:26:29","modified_gmt":"2023-09-06T06:26:29","slug":"native-android-app-development-app-resources","status":"publish","type":"post","link":"https:\/\/aryalspace.com\/?p=2062","title":{"rendered":"Native Android App Development: App Resources"},"content":{"rendered":"\n<p>Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more.<\/p>\n\n\n\n<p>You should always externalise app resources such as images and strings from your code, so that you can maintain them independently.<\/p>\n\n\n\n<p>Once you externalise your app resources, you can access them using resource IDs that are generated in your project&#8217;s R class.<\/p>\n\n\n\n<p>You should place each type of resources in a specific subdirectory of your project&#8217;s res\/ directory.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>animator<\/strong>: XML files that define property animations.<\/p>\n\n\n\n<p><strong>anim: <\/strong>XML files that define tween animations. (Property animations can also be saved in this directory, but the animator \/ directory is preferred for property animations to distinguish between the two types)<\/p>\n\n\n\n<p><strong>Color<\/strong>: XML files that define a state list of colors<\/p>\n\n\n\n<p><strong>drawable: <\/strong>Bitmap files (.png, 9.png, .jpg, .gif) or XML files that are compiled into the following drawable resource subtypes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-normal-font-size\">Bitmap files<\/li>\n\n\n\n<li class=\"has-normal-font-size\">Nine-Patches (re-sizable bitmaps)<\/li>\n\n\n\n<li class=\"has-normal-font-size\">State lists <\/li>\n\n\n\n<li class=\"has-normal-font-size\">Shapes<\/li>\n\n\n\n<li class=\"has-normal-font-size\">Animation drawables<\/li>\n\n\n\n<li class=\"has-normal-font-size\">Other drawables<\/li>\n<\/ul>\n\n\n\n<p><strong>mipmap<\/strong>: Drawable files for different launcher icon densities.<\/p>\n\n\n\n<p><strong>layout<\/strong>: XML files that define a user interface layout<\/p>\n\n\n\n<p><strong>menu<\/strong>: XML files that define app menu, such as an Option Menu, Context Menu, or Sub Menu.<\/p>\n\n\n\n<p><strong>raw<\/strong>: Arbitrary files to save in their raw form<\/p>\n\n\n\n<p><strong>values: <\/strong>XML files that contain simple values, such as strings, integers, and colors.<\/p>\n\n\n\n<p><strong>xml<\/strong>: Arbitrary XML files that can be read at runtime by calling Resources.getXML()<\/p>\n\n\n\n<p><strong>Font:<\/strong> Font files with extensions such as .ttf, .otf, or .ttc, or XML files that include a &lt;font-family&gt; element.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Colors<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"441\" src=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1024x441.png\" alt=\"\" class=\"wp-image-2066\" srcset=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1024x441.png 1024w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-600x259.png 600w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-300x129.png 300w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-768x331.png 768w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1170x504.png 1170w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-585x252.png 585w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image.png 1476w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">res\/values\/colors.xml<\/figcaption><\/figure>\n\n\n\n<p>Getting Color from Code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Kotlin\nvar color: Int = resources.getColor(R.color.white)\n\n\/\/ Java\nResources res = getResources();\nint white_color = res = res.getColor(R.color.white)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Strings<\/h2>\n\n\n\n<p>String:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"193\" src=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1-1024x193.png\" alt=\"\" class=\"wp-image-2068\" srcset=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1-1024x193.png 1024w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1-600x113.png 600w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1-300x56.png 300w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1-768x145.png 768w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1-1536x289.png 1536w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1-2048x386.png 2048w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1-1920x362.png 1920w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1-1170x220.png 1170w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-1-585x110.png 585w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Array:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"327\" src=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-2-1024x327.png\" alt=\"\" class=\"wp-image-2069\" srcset=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-2-1024x327.png 1024w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-2-600x192.png 600w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-2-300x96.png 300w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-2-768x245.png 768w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-2-1536x490.png 1536w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-2-2048x654.png 2048w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-2-1920x613.png 1920w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-2-1170x373.png 1170w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-2-585x187.png 585w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Menu<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"755\" src=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-3-1024x755.png\" alt=\"\" class=\"wp-image-2071\" srcset=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-3-1024x755.png 1024w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-3-600x443.png 600w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-3-300x221.png 300w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-3-768x566.png 768w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-3-1536x1133.png 1536w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-3-2048x1510.png 2048w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-3-1920x1416.png 1920w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-3-1170x863.png 1170w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-3-585x431.png 585w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code><code>\/\/ Java\n@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n   MenuInflater inflater = getMenuInflater();\n   inflater = inflater.inflate(R.menu.my_menu, menu);\n   return true;\n}\n\n\/\/ Kotlin\noverride fun onCreateOptionsMenu(menu: Menu) Boolean {\n   menuIdentifier.inflate(R.menu.my_menu, menu) \n   return true\n}<\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Drawable<\/h2>\n\n\n\n<p>Gradient Background using drawable gradient xml<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"414\" src=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-4-1024x414.png\" alt=\"\" class=\"wp-image-2076\" srcset=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-4-1024x414.png 1024w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-4-600x243.png 600w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-4-300x121.png 300w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-4-768x311.png 768w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-4-1536x621.png 1536w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-4-2048x829.png 2048w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-4-1920x777.png 1920w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-4-1170x473.png 1170w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-4-585x237.png 585w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-5-1024x553.png\" alt=\"\" class=\"wp-image-2078\" srcset=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-5-1024x553.png 1024w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-5-600x324.png 600w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-5-300x162.png 300w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-5-768x415.png 768w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-5-1536x830.png 1536w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-5-2048x1106.png 2048w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-5-1920x1037.png 1920w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-5-1170x632.png 1170w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-5-585x316.png 585w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Custom Shapes<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"485\" src=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-6-1024x485.png\" alt=\"\" class=\"wp-image-2083\" srcset=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-6-1024x485.png 1024w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-6-300x142.png 300w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-6-768x364.png 768w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-6-1536x727.png 1536w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-6-2048x970.png 2048w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-6-1920x909.png 1920w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-6-1170x554.png 1170w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-6-585x277.png 585w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-6-600x284.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Fonts<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"456\" src=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-7-1024x456.png\" alt=\"\" class=\"wp-image-2085\" srcset=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-7-1024x456.png 1024w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-7-300x134.png 300w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-7-768x342.png 768w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-7-1536x685.png 1536w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-7-2048x913.png 2048w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-7-1920x856.png 1920w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-7-1170x521.png 1170w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-7-585x261.png 585w, https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/image-7-600x267.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more. You should always externalise app resources&hellip;<\/p>\n","protected":false},"author":2,"featured_media":2089,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[17],"tags":[60,59,53,56],"class_list":["post-2062","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-native-android-app-development-java-kotlin","tag-drawable","tag-fonts","tag-java","tag-resources"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Native Android App Development: App Resources - Aryal Space - Magic of Technology and Beings<\/title>\n<meta name=\"description\" content=\"Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more.You should always externalise app resources such as images and strings from your code, so that you can maintain them independently.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/aryalspace.com\/?p=2062\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Native Android App Development: App Resources - Aryal Space - Magic of Technology and Beings\" \/>\n<meta property=\"og:description\" content=\"Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more.You should always externalise app resources such as images and strings from your code, so that you can maintain them independently.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/aryalspace.com\/?p=2062\" \/>\n<meta property=\"og:site_name\" content=\"Aryal Space - Magic of Technology and Beings\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/bikramaryal\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-05T11:33:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-06T06:26:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/S-A-V-E-R-S-1024x576.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Bikram Aryal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bikramaryal\" \/>\n<meta name=\"twitter:site\" content=\"@bikramaryal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bikram Aryal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/aryalspace.com\/?p=2062#article\",\"isPartOf\":{\"@id\":\"https:\/\/aryalspace.com\/?p=2062\"},\"author\":{\"name\":\"Bikram Aryal\",\"@id\":\"https:\/\/aryalspace.com\/#\/schema\/person\/d91802b458f2bcf8a68c2c73203c268b\"},\"headline\":\"Native Android App Development: App Resources\",\"datePublished\":\"2023-09-05T11:33:16+00:00\",\"dateModified\":\"2023-09-06T06:26:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/aryalspace.com\/?p=2062\"},\"wordCount\":283,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/aryalspace.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/aryalspace.com\/?p=2062#primaryimage\"},\"thumbnailUrl\":\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/S-A-V-E-R-S.png\",\"keywords\":[\"drawable\",\"fonts\",\"java\",\"resources\"],\"articleSection\":[\"Native Android App Development with Java and Kotlin\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/aryalspace.com\/?p=2062#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/aryalspace.com\/?p=2062\",\"url\":\"https:\/\/aryalspace.com\/?p=2062\",\"name\":\"Native Android App Development: App Resources - Aryal Space - Magic of Technology and Beings\",\"isPartOf\":{\"@id\":\"https:\/\/aryalspace.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/aryalspace.com\/?p=2062#primaryimage\"},\"image\":{\"@id\":\"https:\/\/aryalspace.com\/?p=2062#primaryimage\"},\"thumbnailUrl\":\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/S-A-V-E-R-S.png\",\"datePublished\":\"2023-09-05T11:33:16+00:00\",\"dateModified\":\"2023-09-06T06:26:29+00:00\",\"description\":\"Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more.You should always externalise app resources such as images and strings from your code, so that you can maintain them independently.\",\"breadcrumb\":{\"@id\":\"https:\/\/aryalspace.com\/?p=2062#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/aryalspace.com\/?p=2062\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/aryalspace.com\/?p=2062#primaryimage\",\"url\":\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/S-A-V-E-R-S.png\",\"contentUrl\":\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/S-A-V-E-R-S.png\",\"width\":1920,\"height\":1080,\"caption\":\"Android resources\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/aryalspace.com\/?p=2062#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/aryalspace.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Native Android App Development: App Resources\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/aryalspace.com\/#website\",\"url\":\"https:\/\/aryalspace.com\/\",\"name\":\"Aryal Space - Blog and Programming Tutorials\",\"description\":\"Exploring the Cosmos of Code: Aryal Space - Where Blogs and Programming Unite!\",\"publisher\":{\"@id\":\"https:\/\/aryalspace.com\/#organization\"},\"alternateName\":\"Elevate Your Code Horizons with Aryal Space: Ignite, Inspire, Innovate!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/aryalspace.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/aryalspace.com\/#organization\",\"name\":\"Aryal Space\",\"alternateName\":\"AryalSpace\",\"url\":\"https:\/\/aryalspace.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/aryalspace.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/08\/Aryal-Space.png\",\"contentUrl\":\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/08\/Aryal-Space.png\",\"width\":1000,\"height\":1000,\"caption\":\"Aryal Space\"},\"image\":{\"@id\":\"https:\/\/aryalspace.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/bikramaryal\",\"https:\/\/x.com\/bikramaryal\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/aryalspace.com\/#\/schema\/person\/d91802b458f2bcf8a68c2c73203c268b\",\"name\":\"Bikram Aryal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/aryalspace.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/08\/cropped-Copy-of-8R8A8956-scaled-e1693236718440-96x96.jpg\",\"contentUrl\":\"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/08\/cropped-Copy-of-8R8A8956-scaled-e1693236718440-96x96.jpg\",\"caption\":\"Bikram Aryal\"},\"description\":\"Co-Founder and VP of Engineering of Kindship - Software Engineer with a Passion for Innovation | Bridging Code and Entrepreneurship for a Visionary Future\",\"sameAs\":[\"https:\/\/aryalspace.com\"],\"url\":\"https:\/\/aryalspace.com\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Native Android App Development: App Resources - Aryal Space - Magic of Technology and Beings","description":"Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more.You should always externalise app resources such as images and strings from your code, so that you can maintain them independently.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/aryalspace.com\/?p=2062","og_locale":"en_US","og_type":"article","og_title":"Native Android App Development: App Resources - Aryal Space - Magic of Technology and Beings","og_description":"Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more.You should always externalise app resources such as images and strings from your code, so that you can maintain them independently.","og_url":"https:\/\/aryalspace.com\/?p=2062","og_site_name":"Aryal Space - Magic of Technology and Beings","article_publisher":"https:\/\/facebook.com\/bikramaryal","article_published_time":"2023-09-05T11:33:16+00:00","article_modified_time":"2023-09-06T06:26:29+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/S-A-V-E-R-S-1024x576.png","type":"image\/png"}],"author":"Bikram Aryal","twitter_card":"summary_large_image","twitter_creator":"@bikramaryal","twitter_site":"@bikramaryal","twitter_misc":{"Written by":"Bikram Aryal","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/aryalspace.com\/?p=2062#article","isPartOf":{"@id":"https:\/\/aryalspace.com\/?p=2062"},"author":{"name":"Bikram Aryal","@id":"https:\/\/aryalspace.com\/#\/schema\/person\/d91802b458f2bcf8a68c2c73203c268b"},"headline":"Native Android App Development: App Resources","datePublished":"2023-09-05T11:33:16+00:00","dateModified":"2023-09-06T06:26:29+00:00","mainEntityOfPage":{"@id":"https:\/\/aryalspace.com\/?p=2062"},"wordCount":283,"commentCount":0,"publisher":{"@id":"https:\/\/aryalspace.com\/#organization"},"image":{"@id":"https:\/\/aryalspace.com\/?p=2062#primaryimage"},"thumbnailUrl":"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/S-A-V-E-R-S.png","keywords":["drawable","fonts","java","resources"],"articleSection":["Native Android App Development with Java and Kotlin"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/aryalspace.com\/?p=2062#respond"]}]},{"@type":"WebPage","@id":"https:\/\/aryalspace.com\/?p=2062","url":"https:\/\/aryalspace.com\/?p=2062","name":"Native Android App Development: App Resources - Aryal Space - Magic of Technology and Beings","isPartOf":{"@id":"https:\/\/aryalspace.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/aryalspace.com\/?p=2062#primaryimage"},"image":{"@id":"https:\/\/aryalspace.com\/?p=2062#primaryimage"},"thumbnailUrl":"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/S-A-V-E-R-S.png","datePublished":"2023-09-05T11:33:16+00:00","dateModified":"2023-09-06T06:26:29+00:00","description":"Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more.You should always externalise app resources such as images and strings from your code, so that you can maintain them independently.","breadcrumb":{"@id":"https:\/\/aryalspace.com\/?p=2062#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/aryalspace.com\/?p=2062"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aryalspace.com\/?p=2062#primaryimage","url":"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/S-A-V-E-R-S.png","contentUrl":"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/09\/S-A-V-E-R-S.png","width":1920,"height":1080,"caption":"Android resources"},{"@type":"BreadcrumbList","@id":"https:\/\/aryalspace.com\/?p=2062#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/aryalspace.com\/"},{"@type":"ListItem","position":2,"name":"Native Android App Development: App Resources"}]},{"@type":"WebSite","@id":"https:\/\/aryalspace.com\/#website","url":"https:\/\/aryalspace.com\/","name":"Aryal Space - Blog and Programming Tutorials","description":"Exploring the Cosmos of Code: Aryal Space - Where Blogs and Programming Unite!","publisher":{"@id":"https:\/\/aryalspace.com\/#organization"},"alternateName":"Elevate Your Code Horizons with Aryal Space: Ignite, Inspire, Innovate!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/aryalspace.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/aryalspace.com\/#organization","name":"Aryal Space","alternateName":"AryalSpace","url":"https:\/\/aryalspace.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aryalspace.com\/#\/schema\/logo\/image\/","url":"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/08\/Aryal-Space.png","contentUrl":"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/08\/Aryal-Space.png","width":1000,"height":1000,"caption":"Aryal Space"},"image":{"@id":"https:\/\/aryalspace.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/bikramaryal","https:\/\/x.com\/bikramaryal"]},{"@type":"Person","@id":"https:\/\/aryalspace.com\/#\/schema\/person\/d91802b458f2bcf8a68c2c73203c268b","name":"Bikram Aryal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aryalspace.com\/#\/schema\/person\/image\/","url":"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/08\/cropped-Copy-of-8R8A8956-scaled-e1693236718440-96x96.jpg","contentUrl":"https:\/\/aryalspace.com\/wp-content\/uploads\/2023\/08\/cropped-Copy-of-8R8A8956-scaled-e1693236718440-96x96.jpg","caption":"Bikram Aryal"},"description":"Co-Founder and VP of Engineering of Kindship - Software Engineer with a Passion for Innovation | Bridging Code and Entrepreneurship for a Visionary Future","sameAs":["https:\/\/aryalspace.com"],"url":"https:\/\/aryalspace.com\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/aryalspace.com\/index.php?rest_route=\/wp\/v2\/posts\/2062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aryalspace.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aryalspace.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aryalspace.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/aryalspace.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2062"}],"version-history":[{"count":12,"href":"https:\/\/aryalspace.com\/index.php?rest_route=\/wp\/v2\/posts\/2062\/revisions"}],"predecessor-version":[{"id":2088,"href":"https:\/\/aryalspace.com\/index.php?rest_route=\/wp\/v2\/posts\/2062\/revisions\/2088"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aryalspace.com\/index.php?rest_route=\/wp\/v2\/media\/2089"}],"wp:attachment":[{"href":"https:\/\/aryalspace.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aryalspace.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aryalspace.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}