Description.
Add badge on ImageViews, or other custom views.
Hi @raquezha thank you for your interest in the badging feature, as noted in the javadoc, this feature is currently under development.
Could you please explain your intended use case?
I have a framlelayout which simulates the toolbar, inside it I have:
Use Case: Every time a user pick an item want to put:
Also does this include adding badge on menu items or I should create another request? or just edit the title?
What kind of menu items?
I'm refering to this menu https://developer.android.com/guide/topics/ui/menus
There are multiple types of menus in that link: options menu, popup menu, contextual menus, based o your comment, I assume you mean option menu?
Sorry about that. Yes I'm referring to Option Menu.
thank you!
when can i use the badge,
@xsxkair what's your use case?
Hey, this would be a great feature! I need the excact use case reported by @raquezha for the option menu cart.
There are currently no plans to explicitly support badging on option menus, however, I think you may be able to create a custom layout which contains a badgeDrawable and set it via app:actionLayout
Are there any plans to support drawable background instead of color?
Are there missing customizable strokeWidth/strokeColor attributes? Would be great to have one of the options:
What would you recommend?
See this comment about why it's delayed
https://github.com/material-components/material-components-android/issues/657#issuecomment-679320329
Resolved in 5e35d14
rolledback in 0f717f8, rolled forward in 9487c33
Woah! nice thanks!
Most helpful comment
Resolved in 5e35d14
rolledback in 0f717f8, rolled forward in 9487c33