4949
5050## Latest releases 🛠
5151
52- - Kotlin && New | [ v8.4.5 ] ( https://github.com/mikepenz/MaterialDrawer/tree/v8.4.5 )
53- - Kotlin | [ v7.0.0 ] ( https://github.com/mikepenz/MaterialDrawer/tree/v7.0.0 ) | (Builder approach like v6.x )
52+ - Kotlin && Material 3 | [ v9.0.0 ] ( https://github.com/mikepenz/MaterialDrawer/tree/v9.0.0 )
53+ - Kotlin | [ v8.4.5 ] ( https://github.com/mikepenz/MaterialDrawer/tree/v8.4.5 )
5454- Java && AndroidX | [ v6.1.2] ( https://github.com/mikepenz/MaterialDrawer/tree/v6.1.2 )
5555- Java && AppCompat | [ v6.0.9] ( https://github.com/mikepenz/MaterialDrawer/tree/v6.0.9 )
5656
@@ -64,7 +64,7 @@ implementation "com.mikepenz:materialdrawer:${lastestMaterialDrawerRelease}"
6464implementation "androidx.appcompat:appcompat:${versions.appcompat}"
6565implementation "androidx.recyclerview:recyclerview:${versions.recyclerView}"
6666implementation "androidx.annotation:annotation:${versions.annotation}"
67- implementation "com.google.android.material:material:${versions.material}"
67+ implementation "com.google.android.material:material:1.5.0-alpha05" // requires at least 1.5.0-x
6868implementation "androidx.constraintlayout:constraintlayout:${versions.constraintLayout}"
6969
7070// Add for NavController support
@@ -100,7 +100,7 @@ The `MaterialDrawerSliderView` has to be provided as child of the `DrawerLayout`
100100### 3. Add the ` DrawerStyle ` to your theme
101101
102102``` xml
103- <style name =" SampleApp.DayNight" parent =" Theme.MaterialComponents .DayNight.NoActionBar" >
103+ <style name =" SampleApp.DayNight" parent =" Theme.Material3 .DayNight.NoActionBar" >
104104 ...
105105 <item name =" materialDrawerStyle" >@style/Widget.MaterialDrawerStyle</item >
106106 <item name =" materialDrawerHeaderStyle" >@style/Widget.MaterialDrawerHeaderStyle</item >
@@ -110,6 +110,10 @@ The `MaterialDrawerSliderView` has to be provided as child of the `DrawerLayout`
110110
111111Great. Your drawer is now ready to use.
112112
113+ ### Note
114+
115+ > Using v9.x with Material 3 theming requires a ` Material3 ` theme as base for the activity.
116+
113117# Additional Setup
114118### Add items and adding some functionality
115119
@@ -273,12 +277,12 @@ Create your custom style. If you don't need a custom theme see the next section,
273277 <item name =" materialDrawerInsetForeground" >#4000</item >
274278 <!-- MaterialDrawer specific values -->
275279 <item name =" materialDrawerBackground" >?colorSurface</item >
276- <item name =" materialDrawerPrimaryText" >?android:textColorPrimary </item >
277- <item name =" materialDrawerPrimaryIcon" >?android:textColorSecondary </item >
278- <item name =" materialDrawerSecondaryText" >?android:textColorSecondary </item >
279- <item name =" materialDrawerSecondaryIcon" >?android:textColorSecondary </item >
280- <item name =" materialDrawerDividerColor" >?android:textColorHint </item >
281- <item name =" materialDrawerSelectedBackgroundColor" >?colorPrimary </item >
280+ <item name =" materialDrawerPrimaryText" >@color/color_drawer_item_text </item >
281+ <item name =" materialDrawerPrimaryIcon" >@color/color_drawer_item_text </item >
282+ <item name =" materialDrawerSecondaryText" >@color/color_drawer_item_text </item >
283+ <item name =" materialDrawerSecondaryIcon" >@color/color_drawer_item_text </item >
284+ <item name =" materialDrawerDividerColor" >?colorOutline </item >
285+ <item name =" materialDrawerSelectedBackgroundColor" >?colorSecondaryContainer </item >
282286</style >
283287
284288// define a custom header style
@@ -289,7 +293,7 @@ Create your custom style. If you don't need a custom theme see the next section,
289293</style >
290294
291295// define the custom styles for the theme
292- <style name =" SampleApp" parent =" Theme.MaterialComponents .Light.NoActionBar" >
296+ <style name =" SampleApp" parent =" Theme.Material3 .Light.NoActionBar" >
293297 ...
294298 <item name =" materialDrawerStyle" >@style/Widget.MaterialDrawerStyleCustom</item >
295299 <item name =" materialDrawerHeaderStyle" >@style/Widget.MaterialDrawerHeaderStyleCustom</item >
0 commit comments