1<?xml version="1.0" encoding="utf-8"?> 2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent" 6 android:orientation="vertical"> 7 8 <androidx.appcompat.widget.Toolbar 9 android:id="@+id/main_tool_bar" 10 android:layout_width="match_parent" 11 android:layout_height="?attr/actionBarSize" 12 android:background="?attr/colorPrimary" 13 android:elevation="4dp" 14 android:theme="@style/ThemeOverlay.AppCompat.ActionBar" 15 app:navigationIcon="?homeAsUpIndicator" 16 app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> 17 18 <androidx.fragment.app.FragmentContainerView 19 android:id="@+id/input_fragment_container_view" 20 android:layout_width="match_parent" 21 android:layout_height="0dp" 22 android:layout_weight="1"/> 23 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:gravity="center" 28 android:orientation="horizontal"> 29 30 <ImageButton 31 android:id="@+id/button_back" 32 android:layout_width="0dp" 33 android:layout_height="wrap_content" 34 android:layout_weight="1" 35 android:contentDescription="@string/button_back" 36 android:src="@drawable/dpad_left" /> 37 38 <ImageButton 39 android:id="@+id/button_home" 40 android:layout_width="0dp" 41 android:layout_height="wrap_content" 42 android:layout_weight="1" 43 android:contentDescription="@string/button_home" 44 android:src="@drawable/home" /> 45 46 <ImageButton 47 android:id="@+id/button_forward" 48 android:layout_width="0dp" 49 android:layout_height="wrap_content" 50 android:layout_weight="1" 51 android:contentDescription="@string/button_forward" 52 android:src="@drawable/dpad_right" /> 53 54 </LinearLayout> 55 56 <com.google.android.material.bottomnavigation.BottomNavigationView 57 android:id="@+id/bottom_nav" 58 android:layout_width="match_parent" 59 android:layout_height="?attr/actionBarSize" 60 android:layout_gravity="bottom" 61 android:theme="@style/BottomBarTheme" 62 app:labelVisibilityMode="labeled" 63 app:menu="@menu/input"/> 64 65</LinearLayout>