제출하신 의견은 Jetpack을 개선하는 데 도움이 됩니다. 새로운 문제를 발견하거나 라이브러리 개선을 위한 아이디어가 있다면 Google에 알려 주세요. 새 문제를 제출하기 전에 이 라이브러리의 기존 문제를 살펴보시기 바랍니다. 별표 버튼을 클릭하여 기존 문제에 투표할 수 있습니다.
동작 탐색 지원 업데이트: 이제 DrawerLayout이 시스템 동작 제외 rects를 설정하여 스와이프로 창 열기를 허용합니다.
버전 1.0.0
버전 1.0.0
2018년 9월 21일
androidx.drawerlayout:drawerlayout:1.0.0 버전이 출시되었습니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 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,["# Drawerlayout\n============\n\n[User Guide](/guide/navigation/navigation-ui#add_a_navigation_drawer) [Code Sample](https://github.com/android/views-widgets-samples/tree/main/ConstraintLayoutExamples) \nAPI Reference \n[androidx.drawerlayout.widget](/reference/kotlin/androidx/drawerlayout/widget/package-summary) \nImplement a Material Design drawer widget. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|----------------|--------------------------------------------------------|-------------------|--------------|---------------|\n| March 22, 2023 | [1.2.0](/jetpack/androidx/releases/drawerlayout#1.2.0) | - | - | - |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on DrawerLayout, you must add the Google Maven repository to your\nproject. Read [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n### Groovy\n\n```groovy\ndependencies {\n implementation \"androidx.drawerlayout:drawerlayout:1.2.0\"\n}\n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n implementation(\"androidx.drawerlayout:drawerlayout:1.2.0\")\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:460398%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=460398&template=1422651)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nVersion 1.2\n-----------\n\n### Version 1.2.0\n\nMarch 22, 2023\n\n`androidx.drawerlayout:drawerlayout:1.2.0` is released. [Version 1.2.0 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/fbc749d6e72aa21157e8005fb3517a6d4853fe47..5fb21d2c2b331b0950b9de94e8364c3e5a64b0ea/drawerlayout/drawerlayout)\n\n**Important changes since 1.1.0**\n\n- `DrawerLayout` now integrates with Android 13's `OnBackPressedInvoked` APIs to automatically intercept the system back button when the drawer is open. This requires that your app [opts into the predictive back gesture](https://developer.android.com/guide/navigation/predictive-back-gesture#opt-predictive).\n- Calling `open` and `close` now consistently work even if the drawer is locked. Locking the drawer still prevents users from interacting with the drawer via gestures.\n\n### Version 1.2.0-rc01\n\nMarch 8, 2023\n\n`androidx.drawerlayout:drawerlayout:1.2.0-rc01` is released with no changes. [Version 1.2.0-rc01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/7d3ac1ab1206c01fae3ebb500b5b942636070155..fbc749d6e72aa21157e8005fb3517a6d4853fe47/drawerlayout/drawerlayout)\n\n### Version 1.2.0-beta01\n\nFebruary 8, 2023\n\n`androidx.drawerlayout:drawerlayout:1.2.0-beta01` is released with no changes. [Version 1.2.0-beta01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/bdce26bd7556b92d2d4d2af3de881dd8e2c51459..7d3ac1ab1206c01fae3ebb500b5b942636070155/drawerlayout/drawerlayout)\n\n### Version 1.2.0-alpha01\n\nSeptember 21, 2022\n\n`androidx.drawerlayout:drawerlayout:1.2.0-alpha01` is released. [Version 1.2.0-alpha01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/37cbd85ea1cbab57834490e88e4f31208d20bfaf..bdce26bd7556b92d2d4d2af3de881dd8e2c51459/drawerlayout/drawerlayout)\n\n**New Features**\n\n- Integrate new `OnBackPressedInvoked` APIs for Android 13 ([0c84661](https://android.googlesource.com/platform/frameworks/support/+/0c84661be14b979f3588811f4a4374719f1a5bbe))\n\n**Bug Fixes**\n\n- Ensure `open()` and `close()` work programmatically when drawer is locked ([ae09f6e](https://android.googlesource.com/platform/frameworks/support/+/ae09f6e6686b32c5677c086d51d5737553e2aeb9))\n\nVersion 1.1.1\n-------------\n\n| **Note:** This version is dependent on the Java 8 programming language. Please read [Use Java 8 language features](/studio/write/java8-support) to learn how to use it in your project.\n\n### Version 1.1.1\n\nSeptember 2, 2020\n\n`androidx.drawerlayout:drawerlayout:1.1.1` is released. [Version 1.1.1 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/c8d28fbc5476c828cb1cf34b6e7f5ec6f7920c24..37cbd85ea1cbab57834490e88e4f31208d20bfaf/drawerlayout/drawerlayout)\n\n**Bug Fixes**\n\n- Fixed an issue where `open()` and `close()` would not work when using `LOCK_MODE_LOCKED_CLOSED` or `LOCK_MODE_LOCKED_OPEN`. ([b/162253907](https://issuetracker.google.com/162253907))\n\nVersion 1.1.0\n-------------\n\n| **Note:** This version is dependent on the Java 8 programming language. Please read [Use Java 8 language features](/studio/write/java8-support) to learn how to use it in your project.\n\n### Version 1.1.0\n\nJune 24, 2020\n\n`androidx.drawerlayout:drawerlayout:1.1.0` is released. [Version 1.1.0 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/75f3faf4ff897611ef2e732ed0be0187917d797e..c8d28fbc5476c828cb1cf34b6e7f5ec6f7920c24/drawerlayout/drawerlayout)\n\n**Major changes since 1.0.0**\n\n- `DrawerLayout` now takes into account the size of any gesture navigation insets, expanding the area available to users to long press and swipe to open the drawer when gesture navigation is enabled.\n- `DrawerLayout` now supports setting a default style using the `drawerLayoutStyle` theme attribute.\n- `DrawerLayout` now implements the [`Openable`](/reference/androidx/customview/widget/Openable) interface added in [CustomView `1.1.0`](/jetpack/androidx/releases/customview#1.1.0).\n\n### Version 1.1.0-rc01\n\nMay 20, 2020\n\n`androidx.drawerlayout:drawerlayout:1.1.0-rc01` is released with no changes since `1.1.0-beta01`. [Version 1.1.0-rc01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/6c98d66b901be2eecdf89477ccd70d2490ca6fc2..75f3faf4ff897611ef2e732ed0be0187917d797e/drawerlayout/drawerlayout)\n\n### Version 1.1.0-beta01\n\nApril 1, 2020\n\n`androidx.drawerlayout:drawerlayout:1.1.0-beta01` is released with no changes since `1.1.0-alpha04`. [Version 1.1.0-beta01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/666ae665acfcfa2a20eccc18e4494808169742f4..6c98d66b901be2eecdf89477ccd70d2490ca6fc2/drawerlayout/drawerlayout)\n\n### Version 1.1.0-alpha04\n\nMarch 4, 2020\n\n`androidx.drawerlayout:drawerlayout:1.1.0-alpha04` is released. [Version 1.1.0-alpha04 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/d38639de31ef1465359504032e1dbf994d2b58b5..666ae665acfcfa2a20eccc18e4494808169742f4/drawerlayout/drawerlayout)\n\n**API Changes**\n\n- `DrawerLayout` now implements the `Openable` interface added in [CustomView `1.1.0-alpha02`](/jetpack/androidx/releases/customview#1.1.0-alpha02). ([b/129979320](https://issuetracker.google.com/issues/129979320))\n\n### Version 1.1.0-alpha03\n\nAugust 15, 2019\n\n`androidx.drawerlayout:drawerlayout:1.1.0-alpha03` is released. The commits included in this version can be found [here](https://android.googlesource.com/platform/frameworks/support/+log/4b4213f254744094416b5c3e0a6779783ddae7f7..d38639de31ef1465359504032e1dbf994d2b58b5/drawerlayout).\n| **Note:** This version is dependent on the Java 8 programming language. Please read [Use Java 8 language features](/studio/write/java8-support) to learn how to use it in your project.\n\n**Bug fixes**\n\n- Fixed binary incompatibility with `androidx.core:core:1.2.0-alpha03` ([b/139103874](https://issuetracker.google.com/issues/139103874))\n\n### Version 1.1.0-alpha02\n\nJune 13, 2019\n\n`androidx.drawerlayout:drawerlayout:1.1.0-alpha02` is released. The commits included in this version can be found [here](https://android.googlesource.com/platform/frameworks/support/+log/36911a611ba90ce46111bdae943108297ee998a1..4b4213f254744094416b5c3e0a6779783ddae7f7/drawerlayout).\n| **Note:** This version is dependent on the Java 8 programming language. Please read [Use Java 8 language features](/studio/write/java8-support) to learn how to use it in your project.\n\n**New features**\n\n- Can now set default style using new `drawerLayoutStyle` theme attribute.\n- Removed deprecated behavior when used with gesture navigation on Android 10. Drawers are now swiped open using a long press and swipe\n\n### Version 1.1.0-alpha01\n\nMay 7, 2019\n\n`androidx.drawerlayout:drawerlayout:1.1.0-alpha01` is released.\n| **Note:** This version will only compile against the Q Beta 3 SDK.\n\n**New features**\n\n- Update for Gesture Nav Support: `DrawerLayout` now sets system gesture exclusion `rects` to permit swiping drawers open.\n\nVersion 1.0.0\n-------------\n\n### Version 1.0.0\n\nSeptember 21, 2018\n\n`androidx.drawerlayout:drawerlayout:1.0.0` is released."]]