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
-1
votes
1 answer

Navigation Icon not working by clicking

I have a simple android.support.v7.widget.Toolbar and all I am trying to do is to open a NavigationDrawer by pressing the "hamburger" icon in the top left corner. The "hamburger" button is visible, and when I start to pull from the left I see the…
-1
votes
1 answer

How can I share a navigation drawer between multiple activities?

Hi I'm working on a school project for my High School graduation. The project consist of an Android app wich has as the MainActivity a Navigation Drawer. Now,I've learnt thousands of question about this argument, but all the answers were all about…
Matts
  • 11
  • 2
-1
votes
2 answers

Android navigation drawer inner shadow

I have followed this example to create a side sliding navigation menu inside my app. Now I need to add a inner shadow on the right side of the menu. I've been looking for an example on the internet but no success. Can anyone tell me is this…
-1
votes
1 answer

How to detect soft menu key available in android device?

I would like to check menu key presence in the device in android application. To achieve that i used following code to detect weather device is having hardware menu or not and it is working…
Raghu Mudem
  • 6,793
  • 13
  • 48
  • 69
-1
votes
1 answer

How to implement a nav drawer with fragments and different views in each fragment

Take a look at the Fitbit application Play Store. It has a navigation drawer and the Dashboard item is swipable (basically you can swipe from today to yesterday, to the day before, etc.). My question, how can this be done? I've read that it's…
-1
votes
3 answers

The most efficient way to navigate activity in Android

I'm still early in the Android Development, I want to make an App which have many Fragments. First, I have watched Eric Burke's presentation about Android Anatomy, which said that a Fragment couldn't replace Activity. There's no way you could make…
-1
votes
1 answer

Need to stop Home button in android 4.2.2

I develop on application which contain the customize lock screen. Now my problem is there when I am on lock screen and I press home button the it take me to the my home screen because lock screen is not my home screen so I need to stop its work and…
-1
votes
1 answer

Changing the background of hamburger -> arrow button

I have implemented hamburger -> arrow button on ActionBar, just like here:…
-1
votes
2 answers

Listview containing checkbox and text is getting reset on scrolling

I have drawn a customized navigation drawer with ListView and header but when I scroll the List the checkbox in the List is getting unchecked. Secondly, when I click on the reset button in the header part I want that all the checkboxes in the…
anand
  • 1,711
  • 2
  • 24
  • 59
-1
votes
1 answer

Search a way to launch user default navigation app from my app with intent

I search a mean like an "shareintent" to launch the user default navigation app from my app. I search long time on google, i find a mean to start google navigation but i would like to let the choice to my user to start his navigation app (like waze…
WhatsUp
  • 453
  • 1
  • 5
  • 21
-1
votes
1 answer

How to differentiate between back button and home button presses

When my app starts, there is a start button. The user can start a fragment which setup time can't be neglected. When the user presses back on this fragment, his intention is probalby to leave the fragment, so it's wise to free the resources. However…
Miklos Jakab
  • 2,024
  • 1
  • 23
  • 31
-1
votes
1 answer

How to retain the elements in activity which are dynamically added when I press back button or When I move to parent activity

I add the buttons dynamically to an activity, but They are lost When I click back button or when I move to the parent Activity. How to retain them??
-1
votes
1 answer

Running Android NavigationDrawer example on older android devices

I've downloaded NavigationDrawer example and tested it on my device with android JB and it worked great. I changed the app to use support library and ported it to android api level 8 (Froyo): Extending Activity from ActionBarActivity imports are as…
Ali Behzadian Nejad
  • 8,804
  • 8
  • 56
  • 106
-2
votes
1 answer

Navigating between activities in different packages

What is the best way to implement bottom navigation between activities that reside in different packages ? Where the packages import one another in a top down fashion. Setup I have structured my project as a set of packages; Essentially split into…
Carel
  • 3,289
  • 2
  • 27
  • 44
-2
votes
1 answer

How to detect if a parent activity is in the back stack and can go up without creating a new instance?

I have a system which has several Activity, Activity X, Activity A, Activity B, and Activity Y. Activity X consist of list of A. If we click on A, it will go to Activity A. Activity A consist of list of B. If we click on B, it will go to Activity B.…
Sam
  • 351
  • 1
  • 2
  • 15
1 2 3
79
80