Newer
Older
CitrusClient / app / src / main / res / layout / activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".views.MainActivity">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <androidx.fragment.app.FragmentContainerView
            android:id="@+id/fragment_container"
            android:name="com.example.citrusclient.views.CreateBookFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:background="#EFFFE6" />

        <com.google.android.material.bottomnavigation.BottomNavigationView
            android:id="@+id/bottomNavigationView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="bottom"
            android:layout_weight="8"
            android:background="#F7F7F7"
            android:minHeight="50dp"
            app:itemHorizontalTranslationEnabled="false"
            app:itemIconSize="30dp"
            app:itemIconTint="@color/material_dynamic_neutral50"
            app:itemPaddingBottom="0dp"
            app:itemPaddingTop="-50dp"
            app:itemTextAppearanceActiveBoldEnabled="true"
            app:itemTextColor="@color/teal_200"
            app:menu="@menu/bottom_navigation_item" />
    </LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>