Android リソース はアプリの非コードアセット(レイアウト、文字列、画像、色、寸法)であり、res/ ディレクトリに コードから分離 して保管されます。この分離により、保守性、ローカライゼーション、および異なるデバイスと設定への適応が実現されます。
リソースとは
Resources = app assets kept separate from code in res/:
res/layout/ → XML layout files (UI definitions)
res/values/ → strings.xml, colors.xml, dimens.xml, styles.xml
res/drawable/ → images, vector graphics, shapes
res/mipmap/ → app launcher icons
res/font/ → fonts
→ referenced in code as R.string.app_name, R.layout.activity_main, R.drawable.logo, etc.
