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

SherlockNavigationDrawer implementation problems

Im trying to implement Sherlock Navigation Drawer GITHUB LINK Into my project but im having some problems. After solving most of them, now i get the illegalstate exception when launching the activity. I have no idea why. 02-05 15:09:32.994:…
0
votes
0 answers

White screen displays for a while, when back button pressed in android

I have used Black theme for my android application, and I don't understand why I am getting a white screen instead if I press the back button. Can anybody tell me why this is happening?
0
votes
2 answers

Android fullscreen issue on android 4.1

I'm working on Android 4.1 and application must run on Piranha Ultra III Tab 10.1. I'll use http://developer.android.com/design/get-started/ui-overview.html for naming reference for my question; Status bar and navigation bar... I tried too many…
0
votes
2 answers

Navigation Drawer with edittext not working

I am using the navigation drawer in my app. Above the listview, I have used edittext to make a search bar that will search the listview. But now, when I click the list items, instead of opening other activities, my app force closes. What's…
Chinmay Dabke
  • 5,070
  • 11
  • 40
  • 63
0
votes
2 answers

How to resolve JAR mismatches in android ?

I have implemented facebook login in my android app. Jar file required - android-support-v4.jar which is 342kb And have excuted android slide panel in a demo project from…
0
votes
1 answer

How to make navigationDrawer items swipeable between each other?

Android studio has these blank activity navigation examples - Swipe Views (ViewPager) and Navigation Drawer. My goal is to make an application which has both of these navigation types to traverse the collection of data. Example The most basic…
Laurynas Mališauskas
  • 1,909
  • 1
  • 19
  • 34
0
votes
1 answer

How can I change actionbar actions (items) on selected navigationdrawer item?

I want to change the actions when I select an item from the NavigationDrawer. Is that possible and what's the right way to do that? I am using an Activity that implements the NavigationDrawerFragment. Thank you
0
votes
3 answers

How to a Custom Design in Navigation Drawer?

I am using Navigation Drawer in my app. I want to change the Tittle in the Navigation Drawer and I want to set the Back button option on the top of the header. Three Thing i want to change in the header. 1.Remove the ic_launcher image 2.custom…
Developer
  • 6,292
  • 19
  • 55
  • 115
0
votes
1 answer

Android Navigation draw re-loading fragment whenever closed

I am trying to convert all my code from activities to fragments in order to use a navigation drawer and eventualy some sliding tabs. Currently I have a semi working navigation drawer that opens and displays a list. BUt I am new to fragments and am…
Mike
  • 6,751
  • 23
  • 75
  • 132
0
votes
1 answer

How to Call FrameLayout slider in Different Activities in Android

I have 3 activity say first_activity,second_activity,third_activity.I have used FrameLayout to open a slider .! Now what I want to open the slider on click of button that is available on all three activities. So now like in the Test 1 there is a…
0
votes
2 answers

how to add navigation drawer and tab widget in same activity?

I want to add sliding drawer to the action bar and, tab widget for the application. i used Creating a Navigation Drawer guide to create navigation drawer. i tried to add tab widget to this. but i couldn't. can any one help me to add tab widget after…
anuruddhika
  • 1,549
  • 8
  • 26
  • 40
0
votes
1 answer

add icon to the navigation bar

i have an activity, i want to add a navigation bar to it. i want to support api less that 8 . i did all of that. my problem all the navigation bar in my application contains the application name and the application icon. my question how can i…
user3110137
  • 147
  • 1
  • 10
0
votes
2 answers

Which method gets called in the parent activity when the user clicks on Back in the child activity?

I have 2 activities in my Android app: A and B. A is the parent of B, as defined in the Android manifest. When stepping through my app with the debugger I've found that when I click on Up in the child activity, B, the onCreate() method of A gets…
snark
  • 2,462
  • 3
  • 32
  • 63
0
votes
2 answers

Possible to retain state of child fragment when navigating back from another activity?

I have an activity that hosts a fragment A. When fragment A is attached, I add a child Fragment B or C (depending on some flag) to a container in the A fragment. Now if I navigate forward to a new activity and then hit the back button, the…
0
votes
2 answers

sliding drawer options android

I have a project where the designs require a sliding drawer that comes from the bottom and has essentially three states. fully collapsed (just the handle at the bottom half mast (drawer opens from bottom but only halfway up the screen full mast…
erik
  • 4,946
  • 13
  • 70
  • 120