mikepenz / MaterialDrawer

The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
https://mikepenz.dev
Apache License 2.0
11.67k stars 2.05k forks source link

ellipsize #2724

Closed MarcusWolschon closed 3 years ago

MarcusWolschon commented 3 years ago

There seems to be no way to set the "ellipsize" attribute for a PrimaryDrawerItem. The prevents an implementation of elipsyze="middle" for long folder names in K9 Issue 5290

MarcusWolschon commented 3 years ago

The ability to modify android:lines and android:singleLine would also be benefitial.

mikepenz commented 3 years ago

@MarcusWolschon the MaterialDrawer allows you to also create custom drawer items if you need more features which are not covered by the default items.

Just looked at the referenced issue. And I see you solved it.

It may make sense to add support for this.

MarcusWolschon commented 3 years ago

Looks like someone else did exactly that after I made my ugly, temporary workaround for K-9.

I have another issue to work on next, so I can't make a patch and a Merge Request for this feature myself right away.

mikepenz commented 3 years ago

I believe this answered the issue. Happy to take a PR with improvements to this. Closing the issue