Questions tagged [android-navigation]

For questions about navigation within and between Android apps. Examples include navigating between activities/fragments, up/back behavior, task stacks, and Intent flags that affect navigation behavior.

Consistent navigation is an essential component of the overall user experience. Few things frustrate users more than basic navigation that behaves in inconsistent and unexpected ways.

Android 3.0 introduced significant changes to the global navigation behavior. Thoughtfully following the guidelines for Back and Up will make your app's navigation predictable and reliable for your users.

Android 2.3 and earlier relied upon the system Back button for supporting navigation within an app. With the introduction of action bars in Android 3.0, a second navigation mechanism appeared: the Up button, consisting of the app icon and a left-point caret.

See also the official documentation about this topic.

1192 questions
0
votes
1 answer

android toolbar back navigation not working as expected

I have two activities A and B. I have a mapview inside a fragment in activity A and on button click ,activity B is launched. The lifecyle goes like this: onPause() in fragment inside A onPause() in activity A onStop() in fragment inside A onStop()…
0
votes
1 answer

Navigation drawer selector disable not working

I need to disable the second element in my navigation drawer until a certain task is finished. Here is how I disable the second element: nav_item_selector.xml
Daniel Wilson
  • 18,838
  • 12
  • 85
  • 135
0
votes
3 answers

Ideas for android navigation bar (below action bar)

I have a design for an app that will have a row of buttons below the action bar. Each button will open a different fragment. I am aware of ViewPagers, but I do not want the swipe between fragments functionality. I know that I can disable this…
PFranchise
  • 6,642
  • 11
  • 56
  • 73
0
votes
0 answers

Customize android ViewPager with additional views -- as component

I would like to have a customized ViewPager, augmented with additional views that have specific behavior depending on interaction with the ViewPager. I have implemented all I want, adding views to the main layout that holds the ViewPager and all…
0
votes
0 answers

How to Make Tabs Like Material Play Store

I was wondering how I would go about making something identical to the tabs that the Google play store has. Ideally I want to do this with an ActionBar and not a toolbar. Also note, these are not the same tabs that were used in Holo. I want to get…
0
votes
1 answer

Want ActionBar's Up to mimic Back functionality, but have no way to ping it & menu layout doesn't reflect what I actually see

There are a few things I want to do, but I don't know if I did this right. I simply created an Activity and declared its android:parentActivityName in the AndroidManifest.xml. When I click on an item in my ListView from my first fragment in my…
David
  • 7,028
  • 10
  • 48
  • 95
0
votes
2 answers

An Activity with two different Activities as Parent

I have an Activity DetailsActivity that is accessible from two different Activities: MapActivity and ListActivity. How should I implement Up Navigation to select proper Activity as Parent?
Ali Behzadian Nejad
  • 8,804
  • 8
  • 56
  • 106
0
votes
0 answers

how to add a navigation drawer (sliding menu) inside only one of the tabs?

I have 3 tabs in my app (A, B and C). I have created fragments for each of them. Now, I want a sliding menu / navigation drawer inside only tab A.The menu should show up only inside Tab A and not anywhere else. How can I do it ? Someone please help…
0
votes
1 answer

Up button doesn't work correctly in android 4.0.4

I have a main activity and a child activity. I am using up button in child activity to return to main activity. In my activity I have some animation that I don't want to start it again when I return to it form child activity. So here is home action…
Misagh Emamverdi
  • 3,654
  • 5
  • 33
  • 57
0
votes
1 answer

Manage back navigation after action_view intent

Activity is started by intent Action_view. When I press back button the app closes. How can I start main activity instead?
Yarh
  • 4,459
  • 5
  • 45
  • 95
0
votes
1 answer

android-navigation drawer not open on activity change

it's weird , I spend last 5 hours on it , nothing worked. the problem is this ,When I go from activity a to activity b , and press back button and come back to activity a, the navigation drawer not open. this is the code : public abstract class…
0
votes
2 answers
0
votes
1 answer

Basic customization of the ActionBar within an app that includes a navigation drawer

I'm attempting to use a navigation drawer and an action bar in my application. The top leftmost button in the action bar opens and closes the drawer, and does not have a title in the drawer closed state. But when the drawer is opened, the title…
Twentyonehundred
  • 2,199
  • 2
  • 17
  • 28
0
votes
0 answers

Tabbed navigation in a Fragment

So I have a navigation drawer that handles my fragments. In those fragments I want to implement tabbed navigation. I have searched high and low to find out if this is possible. But I cannot find if it si. From looking at things I don't think it…
0
votes
2 answers

Add navigation drawer on fragment

I have an application with an activity that contains a left-side navigation drawer. This activity also loads dynamically different fragments. Now the point is: I want to attach to each fragment a different right-side drawer (to implement some…
Luca
  • 823
  • 4
  • 11
  • 31