trkpt/app/src/main/res/layout/activity_main.xml

34 lines
1.5 KiB
XML
Raw Normal View History

2016-08-29 12:50:41 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-01-02 17:00:37 +00:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2016-08-29 12:50:41 +00:00
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"
2020-01-02 17:00:37 +00:00
tools:context=".MainActivity">
2016-08-29 12:50:41 +00:00
2020-01-02 17:00:37 +00:00
<fragment
android:id="@+id/main_container"
android:name="androidx.navigation.fragment.NavHostFragment"
2016-08-29 12:50:41 +00:00
android:layout_width="match_parent"
2020-01-02 17:00:37 +00:00
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@id/bottom_navigation_view"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/nav_graph_main" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation_view"
android:layout_width="match_parent"
android:layout_height="56dp"
app:itemBackground="@color/bottom_navigation_background"
app:itemIconTint="@drawable/selector_bottom_navigation"
app:itemTextColor="@drawable/selector_bottom_navigation"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:menu="@menu/menu_bottom_navigation" />
</androidx.constraintlayout.widget.ConstraintLayout>