create From Resource
Returns a BadgeDrawable
from the given XML resource. All attributes from Badge and a custom style
attribute are supported. A badge resource may look like:
<badge
xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/Widget.MaterialComponents.Badge"
app:maxCharacterCount="2"/>
Content copied to clipboard