Skip to content

About

A simple Android BottomNavigationView example demonstrating bottom navigation menu implementation, item selection handling, fragment navigation, and Material Design UI using Java and Android SDK.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

BottomNavigationView in Android 📱

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.


🚀 Features

✅ Bottom Navigation Menu
✅ Easy Section Navigation
✅ Icon & Label Support
✅ Fragment Navigation Support
✅ Badge Notification Support
✅ Material Design Component
✅ Android Studio Compatible


📚 Key Features

Menu Items

Displays multiple navigation items with icons and labels.

Item Selection

Handles user interaction and switches between screens or fragments.

Shift Mode

Automatically adjusts labels when multiple items are added.

Badge Count

Supports badges for notifications and updates.


📂 XML Example

<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 Example

<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>

💻 Java Example

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;
});

🛠 Technologies Used

  • Java
  • Android SDK
  • Material Design Components
  • Android Studio

📱 Use Cases

  • Dashboard Navigation
  • Multi-Screen Applications
  • E-Commerce Apps
  • Social Media Apps
  • Admin Panels
  • Banking Applications

👨‍💻 Developed By

QuickCodeFix 🚀

Connect With Me


⭐ Support

If you found this project useful, give it a ⭐ on GitHub and share it with other Android developers.


📜 License

This project is open-source and free to use.

About

A simple Android BottomNavigationView example demonstrating bottom navigation menu implementation, item selection handling, fragment navigation, and Material Design UI using Java and Android SDK.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages