summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/main/impl/bottomnav/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/android/dialer/main/impl/bottomnav/res/layout')
-rw-r--r--java/com/android/dialer/main/impl/bottomnav/res/layout/bottom_nav_bar_layout.xml52
-rw-r--r--java/com/android/dialer/main/impl/bottomnav/res/layout/bottom_nav_item.xml62
2 files changed, 114 insertions, 0 deletions
diff --git a/java/com/android/dialer/main/impl/bottomnav/res/layout/bottom_nav_bar_layout.xml b/java/com/android/dialer/main/impl/bottomnav/res/layout/bottom_nav_bar_layout.xml
new file mode 100644
index 000000000..02ba3abd5
--- /dev/null
+++ b/java/com/android/dialer/main/impl/bottomnav/res/layout/bottom_nav_bar_layout.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2018 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+ -->
+<com.android.dialer.main.impl.bottomnav.BottomNavBar
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@color/background_dialer_white"
+ android:elevation="8dp">
+
+ <include
+ android:id="@+id/speed_dial_tab"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ layout="@layout/bottom_nav_item"/>
+
+ <include
+ android:id="@+id/call_log_tab"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ layout="@layout/bottom_nav_item"/>
+
+ <include
+ android:id="@+id/contacts_tab"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ layout="@layout/bottom_nav_item"/>
+
+ <include
+ android:id="@+id/voicemail_tab"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ layout="@layout/bottom_nav_item"/>
+</com.android.dialer.main.impl.bottomnav.BottomNavBar> \ No newline at end of file
diff --git a/java/com/android/dialer/main/impl/bottomnav/res/layout/bottom_nav_item.xml b/java/com/android/dialer/main/impl/bottomnav/res/layout/bottom_nav_item.xml
new file mode 100644
index 000000000..5dddd3de5
--- /dev/null
+++ b/java/com/android/dialer/main/impl/bottomnav/res/layout/bottom_nav_item.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2018 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+ -->
+<com.android.dialer.main.impl.bottomnav.BottomNavItem
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:minWidth="80dp"
+ android:minHeight="56dp"
+ android:gravity="center"
+ android:background="?android:selectableItemBackgroundBorderless">
+
+ <FrameLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content">
+
+ <ImageView
+ android:id="@+id/bottom_nav_item_image"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_marginTop="7dp"/>
+
+ <TextView
+ android:id="@+id/notification_badge"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="top|end"
+ android:paddingStart="6dp"
+ android:paddingEnd="6dp"
+ android:minHeight="20dp"
+ android:minWidth="18dp"
+ android:gravity="center"
+ android:textSize="12sp"
+ android:textColor="@color/dialer_primary_text_color_white"
+ android:background="@drawable/notification_badge"
+ android:fontFamily="sans-serif-medium"
+ android:visibility="invisible"/>
+ </FrameLayout>
+
+ <TextView
+ android:id="@+id/bottom_nav_item_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="8dp"
+ android:textSize="12sp"
+ android:textColor="@color/dialer_theme_color"
+ android:gravity="center_horizontal"/>
+</com.android.dialer.main.impl.bottomnav.BottomNavItem> \ No newline at end of file