Here I'm using Material3, but is that not for Android 12? Theme.Material3.
I think I'm missing something, not really familiar with styles / themes yet.
in the fragment I have a simple drawer:
val item1 = PrimaryDrawerItem().apply { nameRes = R.string.drawer_item_home; identifier = 1 }
val item2 = SecondaryDrawerItem().apply { nameRes = R.string.drawer_item_settings; identifier = 2 }
// get the reference to the slider and add the items
binding.slider.itemAdapter.add(
item1,
DividerDrawerItem(),
item2,
SecondaryDrawerItem().apply { nameRes = R.string.drawer_item_settings }
)
I'm trying to get this lovely project to work but it is giving me a hard time with the (I think the styling).
I got it working using version V9.0.0 on the emulator, but I can't get it to work on my phone, both running Android 11.
It keeps trowing:
buidle.gradle:
My themes.xml:
Here I'm using Material3, but is that not for Android 12?
Theme.Material3.
I think I'm missing something, not really familiar with styles / themes yet.in the fragment I have a simple drawer:
and the xml: