warrantree / app-android-retail

Warrantree android application for non POS retail outlets.
0 stars 0 forks source link

Adding Navigation Bar in the app #3

Open aj019 opened 7 years ago

aj019 commented 7 years ago

The app needs a navigation bar with which the user can navigate through the app.

aj019 commented 7 years ago

@IadityaM There is a problem with the navigation bar we need to convert every activity into a fragment for it to work.

IadityaM commented 7 years ago

A navigation bar or a navigation drawer? A custom app bar is easy enough and doesn't require and fragments, same goes with the navigation drawer. none of our activities discusses yesterday had the bottom/top - navigation bar.

aj019 commented 7 years ago

I am talking about the navigation drawer which slides in fron the left. When the user clicks on the navigation drawer item a fragment is loaded inside the main frame. But currently all are activities.

aj019 commented 7 years ago

@IadityaM I will work on the np tasks for now.

IadityaM commented 7 years ago

Navigation drawer doesn't require fragments man. the drawer in itself is a recurring fragment that needs to be setup with each activity it has to be used with.

No buddy that is not how you make a navigation drawer. If you have 7 items in your navigation drawer are you going to add the Navigation drawer fragment in each fragment ? You just need to create a single activity with a Navigation View and Drawer layout and a Frame layout and you just replace the Frame with the fragment. This is based on the Material design Guideline.

Here are links to support this http://www.android4devs.com/2014/12/how-to-make-material-design-navigation-drawer.html https://www.youtube.com/watch?v=zWpEh9k8i7Q

So please take a look into this.

IadityaM commented 7 years ago

I'll integrate that. the Login UI is done.