1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 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 18<androidx.drawerlayout.widget.DrawerLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/activity_pump_drawer_layout" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:fitsSystemWindows="true"> 25 26 <android.widget.LinearLayout 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:animateLayoutChanges="true" 30 android:orientation="vertical"> 31 32 <androidx.coordinatorlayout.widget.CoordinatorLayout 33 android:layout_width="match_parent" 34 android:layout_height="0dp" 35 android:layout_weight="1"> 36 37 <com.google.android.material.appbar.AppBarLayout 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content"> 40 41 <androidx.appcompat.widget.Toolbar 42 android:id="@+id/activity_pump_toolbar" 43 android:layout_width="match_parent" 44 android:layout_height="?actionBarSize" 45 app:navigationIcon="@drawable/ic_menu" 46 app:layout_scrollFlags="scroll|enterAlways"/> 47 48 <com.google.android.material.tabs.TabLayout 49 android:id="@+id/activity_pump_tab_layout" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content"/> 52 53 <!--android.view.View 54 android:layout_width="match_parent" 55 android:layout_height="1dp" 56 android:background="#5f6368"/--> 57 58 </com.google.android.material.appbar.AppBarLayout> 59 60 <!-- TODO(b/123715653) Switch to androidx.viewpager2.widget.ViewPager2 --> 61 <androidx.viewpager.widget.ViewPager 62 android:id="@+id/activity_pump_view_pager" 63 android:layout_width="match_parent" 64 android:layout_height="match_parent" 65 app:layout_behavior="@string/appbar_scrolling_view_behavior"/> 66 67 </androidx.coordinatorlayout.widget.CoordinatorLayout> 68 69 <com.google.android.material.bottomnavigation.BottomNavigationView 70 android:id="@+id/activity_pump_bottom_navigation_view" 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:gravity="bottom" 74 android:background="?colorPrimary" 75 app:itemIconTint="@drawable/selector_bottom_navigation" 76 app:itemTextColor="@drawable/selector_bottom_navigation" 77 app:labelVisibilityMode="labeled" 78 app:menu="@menu/activity_pump_bottom_navigation_view"/> 79 80 </android.widget.LinearLayout> 81 82 <com.google.android.material.navigation.NavigationView 83 android:layout_width="wrap_content" 84 android:layout_height="match_parent" 85 android:layout_gravity="start" 86 android:fitsSystemWindows="true" 87 app:menu="@menu/activity_pump_bottom_navigation_view"/> 88 89</androidx.drawerlayout.widget.DrawerLayout> 90