android - Best way to manage fragments back stack and back button -
I need to pile back the piece and handle a slightly different button from the normal button, which is a circle, in every back stack Throw the entry of the piece.
Please assume that you have a sliding menu with three items; Profile, Network, and Workplace
Each list displays a list with the list listed and when you press the item that you see.
then the heap behind [list] & lt; - [View] The problem is that the way back stack works (or my understanding or misuse of it), because the user is pressing the app on different items, they are behind the heap Will add an entry on it, it gets longer and more and if the user wants to go back to the home screen on the back button, then there is a need for every single entry by index 0; Like [list] & lt; - [View] & lt; - [List] & lt; - [view], etc.
My question is the best way to handle this requirement? When users choose one of those items from the sliding menu, should I remove every single piece from the back? Should I have a back stack in the menu items?
The achievement is that every menu item handles the stack back and when the user is on any of those list views and it gets suppressed on the back button that goes home screen. Easy navigation!
Any suggestions appreciated!
I would say that this is the best practice to leave behind the heap as the Android, therefore This is a prediction for the user. If a user enters your app from another app and hits the back button, then the user wants to go to the previous app on your app home screen.
I hope that you can not remember what you are trying to achieve.
Cheers!
Comments
Post a Comment