Skip to content

Badge

Version 0.5.3

Badge currently supports dot and bubble mode.

Hide Dot Show Dot Hide Bubble Show Bubble
Hide dot Show dot Hide bubble Show bubble

Quick start

Version 0.5.3

badge_mode should be set to dot .

<com.ave.vastgui.tools.view.badgeview.BadgeLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:badge_mode="dot">

    <com.google.android.material.textview.MaterialTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Dot"
        ... />

</com.ave.vastgui.tools.view.badgeview.BadgeLayout>

badge_mode should be set to number or text .

<com.ave.vastgui.tools.view.badgeview.BadgeLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:badge_mode="number">

    <com.google.android.material.textview.MaterialTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Number Bubble"
        ... />

</com.ave.vastgui.tools.view.badgeview.BadgeLayout>

Default style