레이아웃 성능 개선
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Compose 방식 사용해 보기
Jetpack Compose는 Android에 권장되는 UI 도구 키트입니다. Compose에서 레이아웃을 사용하는 방법을 알아보세요.
레이아웃은 사용자 환경에 직접적으로 영향을 미치는 Android 애플리케이션의 핵심 부분입니다. 레이아웃이 잘못 구현되면 느린 UI로 인해 앱의 메모리가 많이 소모될 수 있습니다. Android SDK에는 레이아웃 성능의 문제를 식별하는 데 도움이 되는 도구가 포함되어 있습니다. 이 문서를 통해 메모리 공간을 최소화하면서 부드러운 스크롤 인터페이스를 구현할 수 있습니다.
과정
- 레이아웃 계층 구조 최적화
- 웹페이지가 복잡하면 로드 시간이 느려질 수 있는 것과 마찬가지로 레이아웃 계층 구조가 복잡하면 성능 문제도 발생할 수 있습니다. 이 문서에서는 SDK 도구를 사용하여 레이아웃을 검사하고 성능 병목 현상을 발견하는 방법을 보여줍니다.
- <include>로 레이아웃 재사용
- 이 문서에서는 애플리케이션 UI가 특정 레이아웃 구성을 여러 위치에서 반복하는 경우 효율적이고 재사용 가능한 레이아웃 구성을 만들어 적절한 UI 레이아웃에 포함하는 방법을 보여줍니다.
- 주문형 뷰 로드
- 다른 레이아웃 내에 한 레이아웃 구성요소를 포함하는 것 외에도 포함된 레이아웃이 활동이 실행된 후 필요할 때만 표시되도록 할 수 있습니다.
이 문서에서는 요청 시 레이아웃의 일부를 로드하여 레이아웃의 초기화 성능을 개선하는 방법을 보여줍니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-26(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-26(UTC)"],[],[],null,["# Improve layout performance\n\nTry the Compose way \nJetpack Compose is the recommended UI toolkit for Android. Learn how to work with layouts in Compose. \n[Performance in Compose →](/jetpack/compose/performance) \n\nLayouts are a key part of Android applications that directly affect the user experience. If\nimplemented poorly, your layout can make your app memory-intensive with slow UIs. The Android\nSDK includes tools to help identify problems in your layout performance. With this documentation,\nyou can implement smooth scrolling interfaces with a minimal memory footprint.\n\nLessons\n-------\n\n**[Optimize layout hierarchies](/develop/ui/views/layout/improving-layouts/optimizing-layouts)**\n: In the same way that a complex web page can slow down load time, a complex layout hierarchy\n can also cause performance problems. This documentation shows how you can use SDK tools to\n inspect your layout and discover performance bottlenecks.\n\n**[Reuse layouts with \\\u003cinclude\\\u003e](/develop/ui/views/layout/improving-layouts/reusing-layouts)**\n: If your application UI repeats certain layout constructs in multiple places, this\n documentation shows you how to create efficient, reusable layout constructs and include them\n in the appropriate UI layouts.\n\n**[Load views on demand](/develop/ui/views/layout/improving-layouts/loading-ondemand)**\n: Beyond including one layout component within another layout, you might want to\n make the included layout visible only when it's needed after the activity is running.\n This documentation shows how you can improve your layout's initialization performance by loading\n portions of your layout on demand."]]