Java

Material-Design-Nav-Drawer

Historical Java Android sample showing a Material Design navigation drawer with DrawerLayout, NavigationView, and AppCompat.

S

Sottti

Dernière activité 7 juin 2026
Sottti/Material-Design-Nav-Drawer

231

étoiles

66

forks

4

issues ouvertes

androiddesignjavamaterial-designnavigation-drawer

Ce README est souvent en anglais.

Material Design Navigation Drawer

Java Android Material Status License

A small Java Android sample showing how to build a Material Design navigation drawer with DrawerLayout, NavigationView, AppCompat, and the Android Design Support Library.

The app demonstrates the classic pre-AndroidX navigation drawer pattern: a toolbar with a drawer affordance, a branded drawer header, grouped menu items, checked navigation state, delayed content changes while the drawer closes, and secondary Account, Help, and About screens.

✨ What It Demonstrates

  • DrawerLayout as the root layout for content plus drawer.
  • NavigationView with a header layout and menu resource.
  • AppCompat Toolbar configured as the activity action bar.
  • Home/up affordance opening the drawer from the toolbar.
  • Checked single-selection drawer items for primary destinations.
  • Non-checkable drawer actions for Help and About.
  • Fragment replacement after a short delay to avoid jank while closing the drawer.
  • State restoration for the toolbar title after configuration changes.
  • Alternative branches comparing Design Support Library and manual implementations.

🌿 Branches

Branch Approach
using_design_support_library Default branch using NavigationView from the Design Support Library.
not_using_design_support_library Older/manual drawer implementation without NavigationView.

⚙️ Tech Stack

  • Java
  • Android Gradle Plugin 3.0.0 alpha03
  • Gradle 4.0 milestone 2
  • compile SDK 25, target SDK 25, min SDK 16
  • Android Support Library 25.3.1
  • AppCompat, Design Support Library, Percent Support Library
  • XML layouts and vector drawables

🚀 Run It

This repo is pinned to 2017 Android tooling. For the least friction, use an Android Studio/JDK setup compatible with AGP 3.0 alpha and Gradle 4 milestone builds.

./gradlew :app:assembleDebug
./gradlew :app:installDebug

🧪 Verification

No automated test suite is included in this historical sample. The practical sanity check is to build the debug app:

./gradlew :app:assembleDebug

📌 Status

This is a historical sample, not a modern AndroidX/Material Components app. Its value today is as a compact reference for how the Design Support Library era implemented Material navigation drawers.

📜 License

The original README declared this repository to be MIT licensed. A standalone LICENSE file is not currently present in the repository.

Projets similaires

The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.

Kotlinandroidandroid-developmentandroid-library
Mmikepenz
11,6 k étoiles2 k

[MAINTENANCE MODE] Modular and customizable Material Design UI components for Android

Javaandroidmaterial-componentsmaterial-design
Mmaterial-components
17,4 k étoiles3,2 k

A lightweight Android material bottom navigation bar library

Kotlinandroidandroid-bottom-navigationandroid-library
Iibrahimsn98
2,1 k étoiles256