How do i show the previous button when user hits my icon on action bar . I know i can remove the existing one and add the previous fragment but is there any other simple way ? Basically i want my back button the action bar to act like standard back button (i.e show the previous fragment ) .
Thanks in advance .
iOS platform use an explicit back button with label to allow the user to navigate up the application’s hierarchy.
Instead, Android uses the main action bar’s app icon for hierarchical navigation and the navigation bar’s back button for temporal navigation. Please review the Navigation pattern.
You have to follow this guideline to provide a consistent navigation experience across the platform, so I advice you to delete your back button in the action bar.