2021-12-09 18:01:40 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-12-12 17:38:23 +05:30
|
|
|
<androidx.constraintlayout.motion.widget.MotionLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-12-09 18:01:40 +05:30
|
|
|
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"
|
2021-12-12 17:38:23 +05:30
|
|
|
app:layoutDescription="@xml/activity_main_scene"
|
|
|
|
tools:context=".MainActivity"
|
2022-06-03 22:19:48 +05:30
|
|
|
android:id="@+id/mainMotionLayout">
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
2022-01-28 18:31:41 +05:30
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:layout_height="?attr/actionBarSize"
|
2022-01-28 18:31:41 +05:30
|
|
|
app:menu="@menu/action_bar"
|
2022-02-02 18:08:57 +05:30
|
|
|
app:titleCentered="true"
|
|
|
|
app:subtitleCentered="true"
|
2022-01-28 18:31:41 +05:30
|
|
|
app:title="@string/app_name"
|
2022-06-03 22:19:48 +05:30
|
|
|
app:navigationIcon="@drawable/ic_settings"
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
/>
|
|
|
|
|
2021-12-09 18:31:47 +05:30
|
|
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
2021-12-09 18:25:32 +05:30
|
|
|
android:id="@+id/bottomNav"
|
|
|
|
android:layout_width="match_parent"
|
2021-12-09 18:01:40 +05:30
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-12-09 18:25:32 +05:30
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-12-12 17:38:23 +05:30
|
|
|
app:menu="@menu/bottom_menu" />
|
2021-12-09 18:01:40 +05:30
|
|
|
|
2021-12-09 18:25:32 +05:30
|
|
|
<fragment
|
|
|
|
android:id="@+id/fragment"
|
|
|
|
android:name="androidx.navigation.fragment.NavHostFragment"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/bottomNav"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-01-28 18:31:41 +05:30
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
2021-12-09 18:25:32 +05:30
|
|
|
app:navGraph="@navigation/nav" />
|
2021-12-12 17:38:23 +05:30
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:elevation="20dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-06-03 22:19:48 +05:30
|
|
|
android:background="@android:color/transparent" />
|
2021-12-12 17:38:23 +05:30
|
|
|
</androidx.constraintlayout.motion.widget.MotionLayout>
|