Technical-Hackers / Health-Log

The smart and efficient tool provided to the hospitals to maintain the logs of covid19 patients :hospital:
1 stars 0 forks source link

Add custom bottom navigation bar #20

Open iamsh4shank opened 3 years ago

iamsh4shank commented 3 years ago

As the app contains a normal navigation bar but we can change it to a custom navigation bar using some good libraries.

shivjyotigarai commented 3 years ago

i think i can do this...can i try :)

iamsh4shank commented 3 years ago

Yeah sure @shivjyotigarai

shivjyotigarai commented 3 years ago

will the navigation drawer contain the Doctor, Dashboard and Hospital fragment @robustTechie

iamsh4shank commented 3 years ago

Yeah

shivjyotigarai commented 3 years ago

hi @robustTechie I tried implementating a custom navigation drawer...by hiding the Action Bar in the main activity and using a toolbar for the same...but while implementating the design dependancies ie com.android.support:design:28.0.0 i am getting the following error

The following classes could not be found:
- android.support.design.widget.NavigationView (Fix Build Path, Edit XML, Create Class)
- android.support.v4.widget.DrawerLayout (Fix Build Path, Edit XML, Create Class)
- android.support.v7.widget.Toolbar (Fix Build Path, Edit XML, Create Class)

Due to this, the toolbar cant be implemented...plz look at it once :)...... Can it be done without hiding the Action Bar??

shivjyotigarai commented 3 years ago

If i add the latest dependancy, com.android.support:design:28.0.0 its showing this

Version 28 (intended for Android Pie and below) is the last version of the legacy support library, so we recommend that you migrate to AndroidX libraries when using Android Q and moving forward. The IDE can help with this: Refactor > Migrate to AndroidX...

iamsh4shank commented 3 years ago

Hey @shivjyotigarai what I mean by custom bottom nav is, you can add some animations or change the shape of bottom nav

shivjyotigarai commented 3 years ago

Hey @shivjyotigarai what I mean by custom bottom nav is, you can add some animations or change the shape of bottom nav

ok..working on it @robustTechie

shivjyotigarai commented 3 years ago

hi @robustTechie can u plz mention a few libraries that can be used...like I tried using the Chip Navigation Bar but it doesnt have a proper support to Navigation Controller hence couldnt use it

iamsh4shank commented 3 years ago

you can use any library similar to the chip navigation :)

shivjyotigarai commented 3 years ago

image

error: no suitable method found for setupWithNavController(ChipNavigationBar,NavController)
        NavigationUI.setupWithNavController(navView, navController);
                    ^
    method NavigationUI.setupWithNavController(Toolbar,NavController) is not applicable
      (argument mismatch; ChipNavigationBar cannot be converted to Toolbar)
    method NavigationUI.setupWithNavController(NavigationView,NavController) is not applicable
      (argument mismatch; ChipNavigationBar cannot be converted to NavigationView)
    method NavigationUI.setupWithNavController(BottomNavigationView,NavController) is not applicable
      (argument mismatch; ChipNavigationBar cannot be converted to BottomNavigationView)
shivjyotigarai commented 3 years ago

@robustTechie this one I am referring to..

iamsh4shank commented 3 years ago

Yeah you need to manage it, you need to change it a little bit

shivjyotigarai commented 3 years ago

Yeah you need to manage it, you need to change it a little bit

hmm...working on it ..thx