- Notifications
You must be signed in to change notification settings - Fork6
Android - Cool animated navigation bars for your compose android app.
License
canopas/compose-animated-navigationbar
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
AnimatedBottomBarCompose is a Jetpack Compose library that simplifies the creation of stylishBottom Navigation Bars withcustomizable animations. It allows you to easily integrate attractive navigation bars into yourAndroid app, enhancing the user experience.
LINE INDICATOR![]() | FILLED INDICATOR![]() |
DOT INDICATOR![]() | WORM INDICATOR![]() |
- Multiple Styles: Choose from a variety of pre-defined styles for your Bottom Navigation Bar orcreate your custom style.
- Animation Options: Choose from variety of eye-catching animations for your navigation barelements, making your app more engaging.
- Customization: Customize colors, icons, and animations to match your app's branding anddesign.
Available onMaven Central.
Add the dependency
implementation'com.canopas.compose-animated-navigationbar:bottombar:1.0.1'IntegratingAnimatedBottomBarCompose into your Android app is a breeze! Follow these simplesteps to get started:
- First, set up your navigation controller:
val navController = rememberNavController()val navBackStackEntry by navController.currentBackStackEntryAsState()val currentRoute = navBackStackEntry?.destination?.routeval navigationItems = MainNavigation::class.nestedClasses.map { it.objectInstance as MainNavigation}var selectedItem by remember { mutableIntStateOf(0) }- Next, addAnimatedBottomBarCompose to your app's Scaffold as the bottom bar:
Scaffold( bottomBar = { AnimatedBottomBar( selectedItem = selectedItem, itemSize = navigationItems.take(3).size, containerColor = Color.LightGray, indicatorStyle = IndicatorStyle.LINE ) { navigationItems.forEachIndexed { index, navigationItem -> BottomBarItem( selected = currentRoute == navigationItem.route, onClick = { if (currentRoute != navigationItem.route) { selectedItem = index // ... Navigation Stuff } }, imageVector = navigationItem.icon, label = navigationItem.title, containerColor = Color.Transparent ) } } }) {// ... (rest of your app content)}To seeAnimatedBottomBarCompose in action, check outourSample app where you canexplore various styles and animation options.
For bugs, questions and discussions please usetheGithub Issues
AnimatedBottomBarCompose is owned and maintained by theCanopas team.For project updates and releases, you can follow them on Xat@canopassoftware.
Copyright 2023 Canopas Software LLPLicensed under the Apache License, Version 2.0 (the "License");You won't be using this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.About
Android - Cool animated navigation bars for your compose android app.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.





