Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

리소스 유형별로 관리하는 이유 및 예시 #15

Open
Kangsaan0627 opened this issue Nov 6, 2023 · 1 comment
Open

리소스 유형별로 관리하는 이유 및 예시 #15

Kangsaan0627 opened this issue Nov 6, 2023 · 1 comment
Assignees

Comments

@Kangsaan0627
Copy link
Collaborator

Kangsaan0627 commented Nov 6, 2023

문제

  1. Asset 리소스 파일과 일반적인 리소스 파일의 차이점은 무엇인가?
  2. 리소스를 유형별 각기 다른 폴더에 관리해야 하는 이유는 무엇이며
  3. 예시는 어떤 것들이 있나?

선정 배경

안드로이드 앱은 크게 '자바 코드' 그리고 '리소스'로 구성된다. 거기서 리소스 관리하는것을 어느정도 제대로 알아가야 할 필요가 있다고 생각한다.

@Kangsaan0627 Kangsaan0627 self-assigned this Nov 6, 2023
@Kangsaan0627
Copy link
Collaborator Author

  1. Asset은 동영상이나 웹페이지 같은 용량이 큰 데이터를 넣는 데 사용된다.

  2. 각기 다른 폴더에 관리해야 하는 이유 : 많은 양의 데이터들을 구분하기 쉽고 유지관리가 편할 수 있도록 유형별로 서로 다른 폴더에서 관리해야한다.

  3. 예시 : /app/res/values - 문자열, 기본 데이터 타입, /app/res/drawable - 이미지( 다음은 해상도에 따라 또 다시 나눈다.)
    /app/res/drawable-xhdpi, /app/res/drawable-hdpi, /app/res/drawable-mdpi 등으로 나눌 수 있다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant