| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2016 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. |
| --> |
| |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" |
| app:statusBarBackground="@null" |
| android:fitsSystemWindows="true"> |
| |
| <com.google.android.material.appbar.AppBarLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="@null" |
| app:elevation="0dp"> |
| |
| <androidx.appcompat.widget.Toolbar |
| android:id="@+id/toolbar" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| app:contentInsetStart="0dp" |
| tools:ignore="RtlSymmetry" |
| android:gravity="center"> |
| |
| <TextView |
| android:id="@+id/title_view" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="start" |
| android:layout_marginStart="24dp" |
| style="@style/TextAppearance.Title" /> |
| |
| </androidx.appcompat.widget.Toolbar> |
| </com.google.android.material.appbar.AppBarLayout> |
| |
| <androidx.coordinatorlayout.widget.CoordinatorLayout |
| android:id="@+id/content" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1"> |
| |
| <FrameLayout |
| android:id="@+id/fragment_container" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"/> |
| |
| <androidx.constraintlayout.widget.ConstraintLayout |
| android:id="@+id/fab_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="bottom" |
| android:baselineAligned="false" |
| android:orientation="horizontal" |
| app:layout_dodgeInsetEdges="bottom" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
| |
| <com.google.android.material.floatingactionbutton.FloatingActionButton |
| android:id="@+id/left_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:contentDescription="@null" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toStartOf="@id/fab" |
| app:layout_constraintHorizontal_bias="0.6" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="parent" |
| android:backgroundTint="@color/accent_color2" /> |
| |
| <com.google.android.material.floatingactionbutton.FloatingActionButton |
| android:id="@+id/fab" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:layout_margin="@dimen/fab_margin" |
| android:contentDescription="@null" |
| app:fabCustomSize="@dimen/fab_height" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="parent"/> |
| |
| <com.google.android.material.floatingactionbutton.FloatingActionButton |
| android:id="@+id/right_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:contentDescription="@null" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintHorizontal_bias="0.4" |
| app:layout_constraintStart_toEndOf="@id/fab" |
| app:layout_constraintTop_toTopOf="parent" |
| android:backgroundTint="@color/accent_color2"/> |
| </androidx.constraintlayout.widget.ConstraintLayout> |
| </androidx.coordinatorlayout.widget.CoordinatorLayout> |
| |
| <com.google.android.material.bottomnavigation.BottomNavigationView |
| android:id="@+id/bottom_view" |
| android:layout_width="match_parent" |
| android:layout_height="80dp" |
| android:background="@color/secondary_color" |
| android:paddingTop="12dp" |
| android:paddingBottom="16dp" |
| app:menu="@menu/bottom_navigation_menu" |
| app:itemIconTint="@color/tab_tint_color" |
| app:itemTextColor="@color/tab_tint_color" |
| app:itemTextAppearanceActive="@style/navText" |
| app:itemTextAppearanceInactive="@style/navText" |
| app:labelVisibilityMode="labeled" /> |
| </LinearLayout> |