Issue
So in my nav_graph.xml
file, I have a lot of fragments. It took quite a while for me to drag them around in the Design
view, and I want to make sure that is backed up. I'd like to track that in my git repository, but I have no idea where that information is stored.
I'm assuming it is in a file somewhere. Does anyone know where that file lives and what the name of it is?
EDIT To be clear: I am not looking for the xml file itself. I know where that is. It's over 800 lines long, so if I didn't know where that was, it would be magic that I even had a nav graph at all.
I'm looking for the file (or wherever the information is stored) that controls how it is laid out visually in the designer. That the view where you can drag the fragment tiles around to present the graph visually.
For example, this from the Android docs:
What if the green tile was dragged above the pink/orange tile? Something has to save those coordinates, right? Or it wouldn't load again the next time I started Android Studio. Where is that information saved??
Solution
nav_graph
itself saves all the information, related to the fragment directions and actions, which actually defines all the required information for working of the Navigation graph
.
I'm looking for the file (or wherever the information is stored) that controls how it is laid out visually in the designer.
Information regarding the visual representation of the nav graph is editor specific, and Android Studio stores it in .idea > navEditor.xml.
To access .idea directory, you've to be in project mode.
Answered By - Praveen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.