Closed ghost closed 6 years ago
@masterleclerc you can create CustomDrawerItem
looking exactly what you'd wish :) There's a section in the FAQ mentioning that ;)
Haha, so simple, just extend DraweItem ; ) Thanks.
@mikepenz Am I being dense or is this not in FAQ anymore?
@Shakezulla57 it's still part of the FAQ: https://github.com/mikepenz/MaterialDrawer/blob/develop/FAQ.md
https://github.com/mikepenz/MaterialDrawer/blob/develop/FAQ/howto_modify_add_custom_draweritems.md
Thanks @mikepenz
I was looking at the FAQ section of the README.
Is it possible to provide custom layout for Items? I want to support rare situation when the application supports RTL layout but there is no translation available for currently selected RTL language. In this case drawer is correctly placed on the right side, is populated with English (default) values but words in the menu are aligned to the left. Correct value would be to the right. I handle it it in the rest of my app with simple adding android:textAlignment="viewStart" to the text vies.
I can see in
material_drawer_item_primary.xml
:it would be great if I could just add simple
android:textAlignment="viewStart"
; )