리소스 유형 개요
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 섹션의 각 페이지에서는 프로젝트 리소스 디렉터리(res/
)에 제공할 수 있는 특정 유형 앱 리소스의 사용법, 형식, 문법을 설명합니다.
다음은 각 페이지의 간략한 요약입니다.
- 애니메이션 리소스
- 사전 결정된 애니메이션을 정의합니다.
트윈 애니메이션은 res/anim/
에 저장되고 R.anim
클래스에서 액세스됩니다.
프레임 애니메이션은 res/drawable/
에 저장되고 R.drawable
클래스에서 액세스됩니다.
- 색상 상태 목록 리소스
View
상태에 따라 변경되는 색상 리소스를 정의합니다.
res/color/
에 저장되고 R.color
클래스에서 액세스됩니다.
- 드로어블 리소스
- 비트맵 또는 XML을 사용하여 다양한 그래픽을 정의합니다.
res/drawable/
에 저장되고 R.drawable
클래스에서 액세스됩니다.
- 레이아웃 리소스
- 애플리케이션 UI의 레이아웃을 정의합니다.
res/layout/
에 저장되고 R.layout
클래스에서 액세스됩니다.
- 메뉴 리소스
- 애플리케이션 메뉴의 콘텐츠를 정의합니다.
res/menu/
에 저장되고 R.menu
클래스에서 액세스됩니다.
- 문자열 리소스
- 문자열, 문자열 배열, 복수형을 정의하고 문자열 형식 지정 및 스타일 지정을 포함합니다.
res/values/
에 저장되고 R.string
, R.array
, R.plurals
클래스에서 액세스됩니다.
- 스타일 리소스
- UI 요소의 스타일과 형식을 정의합니다.
res/values/
에 저장되고 R.style
클래스에서 액세스됩니다.
- 글꼴 리소스
- 글꼴 모음을 정의하고 맞춤 글꼴을 XML에 포함합니다.
res/font/
에 저장되고 R.font
클래스에서 액세스됩니다.
- 리소스 유형 더보기
- 다음을 포함하여 기타 프리미티브 값을 정적 리소스로 정의합니다.
- 부울
- 불리언 값을 전달하는 XML 리소스입니다.
- 색상
- 16진수 색상 값을 전달하는 XML 리소스입니다.
- 크기
- 크기 값(측정 단위 사용)을 전달하는 XML 리소스입니다.
- ID
- 애플리케이션 리소스 및 구성요소의 고유 식별자를 제공하는 XML 리소스입니다.
- 정수
- 정수 값을 전달하는 XML 리소스입니다.
- 정수 배열
- 정수 배열을 제공하는 XML 리소스입니다.
- 유형이 있는 배열
- 드로어블 배열에 사용할 수 있는
TypedArray
를 제공하는 XML 리소스입니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Resource types overview\n\nEach page in this section describes the usage, format, and syntax for a certain type\nof [app resource](/guide/topics/resources/providing-resources)\nthat you can provide in your project resources directory (`res/`).\n\nHere's a brief summary of each page:\n\n[Animation resources](/guide/topics/resources/animation-resource)\n: Define pre-determined animations. \n\n Tween animations are saved in `res/anim/` and accessed from the `R.anim` class. \n\n Frame animations are saved in `res/drawable/` and accessed from the `R.drawable` class.\n\n[Color state list resource](/guide/topics/resources/color-list-resource)\n: Define a color resource that changes based on the `View` state. \n\n Saved in `res/color/` and accessed from the `R.color` class.\n\n[Drawable resources](/guide/topics/resources/drawable-resource)\n: Define various graphics with bitmaps or XML. \n\n Saved in `res/drawable/` and accessed from the `R.drawable` class.\n\n[Layout resource](/guide/topics/resources/layout-resource)\n: Define the layout for your application UI. \n\n Saved in `res/layout/` and accessed from the `R.layout` class.\n\n[Menu resource](/guide/topics/resources/menu-resource)\n: Define the contents of your application menus. \n\n Saved in `res/menu/` and accessed from the `R.menu` class.\n\n[String resources](/guide/topics/resources/string-resource)\n: Define strings, string arrays, and plurals and include string formatting and styling. \n\n Saved in `res/values/` and accessed from the `R.string`, `R.array`,\n and `R.plurals` classes.\n\n[Style resource](/guide/topics/resources/style-resource)\n: Define the look and format for UI elements. \n\n Saved in `res/values/` and accessed from the `R.style` class.\n\n[Font resources](/guide/topics/resources/font-resource)\n: Define font families and include custom fonts in XML. \n\n Saved in `res/font/` and accessed from the `R.font` class.\n\n[More resource types](/guide/topics/resources/more-resources)\n: Define other primitive values as static resources, including the following:\n\n [Bool](/guide/topics/resources/more-resources#Bool)\n : XML resource that carries a boolean value.\n\n [Color](/guide/topics/resources/more-resources#Color)\n : XML resource that carries a hexadecimal color value.\n\n [Dimension](/guide/topics/resources/more-resources#Dimension)\n : XML resource that carries a dimension value with a unit of measure.\n\n [ID](/guide/topics/resources/more-resources#Id)\n : XML resource that provides a unique identifier for application resources and\n components.\n\n [Integer](/guide/topics/resources/more-resources#Integer)\n : XML resource that carries an integer value.\n\n [Integer array](/guide/topics/resources/more-resources#IntegerArray)\n : XML resource that provides an array of integers.\n\n [Typed array](/guide/topics/resources/more-resources#TypedArray)\n : XML resource that provides a [TypedArray](/reference/android/content/res/TypedArray), which you can use\n for an array of drawables."]]