[go: up one dir, main page]

0% found this document useful (0 votes)
30 views2 pages

Activity Main - XML

Uploaded by

lowlevel269
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

Activity Main - XML

Uploaded by

lowlevel269
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<?xml version="1.0" encoding="utf-8"?

>
<RelativeLayout 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:background="@color/white"
android:id="@+id/main"
android:layout_height="match_parent"
tools:context=".MainActivity">

<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom_navigation"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />

<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#f5f5f5"
app:elevation="0dp"
android:layout_alignParentBottom="true"

style="@style/Widget.MaterialComponents.BottomNavigationView.PrimarySurface"
app:itemTextColor="@color/bottom_navigation_selector"
app:itemIconTint="@color/bottom_navigation_selector"
app:menu="@menu/nav_bar"
/>

</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:background="@color/white"
android:id="@+id/main"
android:layout_height="match_parent"
tools:context=".MainActivity">

<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom_navigation"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />

<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#f5f5f5"
app:elevation="0dp"
android:layout_alignParentBottom="true"

style="@style/Widget.MaterialComponents.BottomNavigationView.PrimarySurface"
app:itemTextColor="@color/bottom_navigation_selector"
app:itemIconTint="@color/bottom_navigation_selector"
app:menu="@menu/nav_bar"
/>

</RelativeLayout>

You might also like