BottomNavigationView is a UI component in Android used to provide navigation at the bottom of the screen. It allows users to switch between different sections or pages within an application easily.
Each item in the BottomNavigationView represents a separate destination and is usually displayed with an icon and label.
✅ Bottom Navigation Menu
✅ Easy Section Navigation
✅ Icon & Label Support
✅ Fragment Navigation Support
✅ Badge Notification Support
✅ Material Design Component
✅ Android Studio Compatible
Displays multiple navigation items with icons and labels.
Handles user interaction and switches between screens or fragments.
Automatically adjusts labels when multiple items are added.
Supports badges for notifications and updates.
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigationView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
app:menu="@menu/bottom_menu"/><menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/home"
android:icon="@drawable/ic_home"
android:title="Home"/>
<item
android:id="@+id/search"
android:icon="@drawable/ic_search"
android:title="Search"/>
<item
android:id="@+id/profile"
android:icon="@drawable/ic_profile"
android:title="Profile"/>
</menu>BottomNavigationView bottomNavigationView = findViewById(R.id.bottomNavigationView);
bottomNavigationView.setOnItemSelectedListener(item -> {
switch (item.getItemId()) {
case R.id.home:
// Open Home Fragment
return true;
case R.id.search:
// Open Search Fragment
return true;
case R.id.profile:
// Open Profile Fragment
return true;
}
return false;
});- Java
- Android SDK
- Material Design Components
- Android Studio
- Dashboard Navigation
- Multi-Screen Applications
- E-Commerce Apps
- Social Media Apps
- Admin Panels
- Banking Applications
- GitHub: https://github.com/vaibhavimore1811
- LinkedIn: https://linkedin.com/in/vaibhavi-more-9774a1196
- Instagram: https://instagram.com/quickcodefix
If you found this project useful, give it a ⭐ on GitHub and share it with other Android developers.
This project is open-source and free to use.