Badge¶
Badge currently supports dot and bubble mode.
Hide Dot | Show Dot | Hide Bubble | Show Bubble |
---|---|---|---|
Quick start¶
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>