menu_badge.xml 942 Bytes
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
Christophe Henry's avatar
Christophe Henry committed
2 3 4
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
5 6 7 8 9
    android:orientation="vertical"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:layout_gravity="center"
    android:gravity="center">
Christophe Henry's avatar
Christophe Henry committed
10
    <TextView
11 12 13 14 15 16 17 18 19
        android:id="@+id/menu_counter_badge_count"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/red_circle_background"
        android:gravity="center"
        android:text="0"
        android:layout_marginStart="@dimen/badge_margin_start"
        android:layout_marginBottom="@dimen/badge_margin_bottom"
        android:textStyle="bold"
20
        android:textColor="@color/design_default_color_on_primary"
21 22 23
        android:visibility="visible"
        tools:ignore="HardcodedText" />
</LinearLayout>