This project explores and implements an animated bottom navigation bar in an Android app using fragments. The AnimatedBottomBar component facilitates seamless and visually appealing navigation between different sections of the app, each represented by a fragment. The app also showcases various layout managers including Grid Layout Manager (horizontal and vertical), and Linear Layout Manager (horizontal and vertical).
The project includes a MainActivity that utilizes the FragmentManager to manage navigation between different fragments using an AnimatedBottomBar. Each fragment is designed to represent a specific part of the user interface with distinct layout managers.
-
MainActivity:
- Initializes the app and controls navigation between fragments.
- Uses the
FragmentManagerto manage fragment transactions, such as addition, replacement, and removal. - Handles
AnimatedBottomBarinteractions to switch between fragments.
-
Animated Bottom Bar:
- Defined in
bottom_menu.xml, it includes items for Grid Horizontal, Grid Vertical, Linear Horizontal, and Linear Vertical.
- Defined in
-
Fragments:
- GridHorizontalFragment: Displays a Grid Layout Manager (horizontal).
- GridVerticalFragment: Displays a Grid Layout Manager (vertical).
- LinearHorizontalFragment: Displays a Linear Layout Manager (horizontal).
- LinearVerticalFragment: Displays a Linear Layout Manager (vertical).
-
Buttons:
- toadd: Button to add items to the list.
- remove: Button to remove items from the list.
-
Divider:
- Utilized to separate items within the RecyclerView in different fragments.
video.mp4
The project demonstrates the following functionalities:
- Dynamically adding fragments to the layout using
FragmentManager. - Using
FragmentTransactionto handle fragment transactions. - Implementing an animated bottom navigation bar to switch between different fragments.
- Utilizing RecyclerView with different layout managers:
- Grid Layout Manager (horizontal and vertical).
- Linear Layout Manager (horizontal and vertical).
- Adding dividers to separate items in the RecyclerView.
- Adding and removing items from the list using the toadd and remove buttons.
RecyclerViewCardViewAnimated-Bottom-Navigation-with-RecyclerView-and-CardView- Additional libraries as needed for functionality.
This project is open-source and available under the MIT License.



