Questions tagged [android-navigation-editor]

Jetpack's Architecture Components make it easy to implement in-app navigation by providing a set of Navigation components that handle most of the details for you.

Jetpack's Architecture Components make it easy to implement in-app navigation by providing a set of Navigation components that handle most of the details for you.

With Navigation, you create a navigation graph, which is an XML resource that represents the individual destination nodes within your app along with the actions that connect the nodes.

For More : Implement navigation with the Navigation components

13 questions
5
votes
1 answer

Navigation Lint Error: This navigation graph is not referenced from any layout files

I have 2 modules in my app (app module and splash module). I'm trying to leverage the tag in an effort to make the FTUE self contained and not a part of the main nav graph as the docs suggest. My main nav graph is defined in the app…
5
votes
3 answers

How to show warning message when back button is pressed in fragments

I want application to show warning message when user press back button and if user select Yes it will go back. And i am in navigation graph fragment. I have searched many time in stack Overflow and tried: @Override public void onBackPressed() { …
3
votes
0 answers

Opening up a fragment in full screen from a child fragment(Non Full screen) using Android Navigation Component

Here is my design requirement my first screen is an activity which contains a Fragment(Non-Fullscreen) on clicking a filter icon in a fragment(Non-Full screen), I want to navigate to filter fragment(Fullscreen) without communicating with an…
3
votes
4 answers

Fragments are not displaying in Android Navigation component

Am new with this architecture and am trying to add multiple fragments in the Android Navigation component but the Fragments are not visible in the list. As you can see, The host is the only one available. I also had a look at this question, but it…
2
votes
1 answer

Android Studio navigation graph visualization export

I want to use the Navigation graph diagram in the project wiki. For that, I'm trying to find a way to export the Navigation graph visualization from Navigation Editor in Android Studio. Maybe is there a way to export it in PNG image, Vector or PDF…
2
votes
0 answers

Persisting navigation graph positioning in Android Studio navigation editor

Is there a way to persist the position of nodes in the navigation graph when using Android Studio? Maybe even check into version control. I would imagine those positions are written to some file in .idea but couldn't find a reference to any such…
1
vote
1 answer

NavigationUI with actionbar icon clicks result in fragments fading in and out

I have an actionbar with icons that, when clicked, shows cooresponding fragments on the screen. This is independent of the navigation graph. I'm using the NavigationUI.onNavDestinationSelected method to navigate to respective fragments when the…
1
vote
2 answers

Trouble with NavController inside OnBackPressedCallback

I am getting a does not have a NavController set error inside a OnBackPressedCallback. Here is the code override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { fragmentView =…
1
vote
0 answers

Navigation Component transition animation doesn't work properly

In MainActivity.kt, I have methods to change its Fragment. Here is a method for going to SettingActivity.kt override fun startSetting() { Timber.d("startSetting()") Toast.makeText(activity, "startSetting()",…
1
vote
1 answer

Jetpack Navigation - How to handle dependency warning when adding nav_graph.xml?

I want to use the new navigation library of android jetpack. As I wanted to add a navigation XML to my project I got an error saying: This operation requires the libraries android.arch.navigation:navigation-fragment:+, …
1
vote
0 answers

Creating back stack with Android Navigation Component

I am having an issue creating a back stack with the new android navigation component. I have a main graph with a splash fragment, a loginregister root fragment that has it's own graph, an onboard step 1 fragment with corresponding step 1 graph,…
1
vote
1 answer

Android studio navigation editor is not showing the fragment's attributes

I am using Navigation Editor in the android studio and my android studio version is 3.3.2. my problem is when I add a fragment to the navigation editor, the attributes of the fragment are not showing in design mode. look at the…
houman.sanati
  • 1,054
  • 3
  • 18
  • 34
1
vote
2 answers

Android Studio 3.3 - Enable Navigation not found

I am learning Navigation Codelab, on First Step they are saying that, 1. Click File > Settings (Android Studio > Preferences on Mac) 2. Select the Experimental category in the left pane 3. Check Enable Navigation Editor 4. Restart Android…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437