1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2018 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17<com.android.dialer.main.impl.bottomnav.BottomNavItem
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:orientation="vertical"
20    android:layout_width="wrap_content"
21    android:layout_height="wrap_content"
22    android:minWidth="80dp"
23    android:minHeight="56dp"
24    android:gravity="center"
25    android:background="?android:attr/selectableItemBackgroundBorderless">
26
27  <FrameLayout
28      android:layout_width="wrap_content"
29      android:layout_height="wrap_content">
30
31    <ImageView
32        android:id="@+id/bottom_nav_item_image"
33        android:layout_width="24dp"
34        android:layout_height="24dp"
35        android:layout_marginTop="8dp"/>
36
37    <TextView
38        android:id="@+id/notification_badge"
39        android:layout_width="wrap_content"
40        android:layout_height="wrap_content"
41        android:layout_gravity="top|end"
42        android:layout_marginTop="2dp"
43        android:paddingStart="6dp"
44        android:paddingEnd="6dp"
45        android:paddingBottom="1dp"
46        android:minHeight="20dp"
47        android:minWidth="20dp"
48        android:gravity="center"
49        android:textSize="12sp"
50        android:textColor="?android:attr/textColorPrimaryInverse"
51        android:background="@drawable/notification_badge"
52        android:fontFamily="sans-serif-medium"
53        android:visibility="invisible"/>
54  </FrameLayout>
55
56  <TextView
57      android:id="@+id/bottom_nav_item_text"
58      android:layout_width="wrap_content"
59      android:layout_height="wrap_content"
60      android:layout_marginBottom="8dp"
61      android:gravity="center_horizontal"
62      android:textSize="12sp"
63      style="@style/Dialer.TextAppearance.Secondary"/>
64</com.android.dialer.main.impl.bottomnav.BottomNavItem>