-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Item design like Gmail #2616
Comments
the default items look like the items according to the material design guidelines. but with some theming work like adjusting the corner radius and stuff you should be able to achieve the above :) |
It would actually be a great thing for our sample if you'd love to contribute to the project :) |
Oh, if i find how to do this... ))) |
All magic basically happens here. As you can see we make use of the new MaterialShapeDrawable which allows for shape theming :) MaterialDrawer/library/src/main/java/com/mikepenz/materialdrawer/util/DrawerUtils.kt Line 354 in 57b0728
and we support passing in a custom MaterialDrawer/library/src/main/java/com/mikepenz/materialdrawer/model/AbstractDrawerItem.kt Lines 330 to 333 in 7d33603
So theoretically if you overwrite the |
Ok additionally the insets via |
So right now the best approach is to overwrite the See the above sample how it's possibly looking like (with dark theme and light theme) |
for the style I used a shape appearance model like this:
|
so the next version will make theming this a bit easier :) also I will have a sample for you to see how it's done |
Well, we are waiting for v8.1.2? ;) |
Released v8.1.2 for you :) hope it helps |
Unbelievable! Thanks a lot! ))) |
It works! Great! |
Yes :) You can use the sample GmailDrawerItem class in your project and the one id which is needed :) And having this in your class allows you to finetune it to your exact needs |
Hi Mike! How i can do something like this?
The text was updated successfully, but these errors were encountered: