This is the fifth day of my participation in Gwen Challenge
Welcome to pay attention to my public number: “Ananzhuo” free learning knowledge
Making the address
Github.com/ymeddmn/Jet…
The branch where the code resides: NestingGraph
Embedded code
Nested diagrams are the magic of a navigation diagram that can contain other navigation diagrams. Nested diagrams can be implemented in two ways:
1. Add labels directly to the navigation chart to add nested charts
2. Use labels to nest other navigation diagrams into our navigation diagram
Nested diagrams allow us to draw navigation diagrams without having to write the same navigation diagram repeatedly.
For example:
Our app jumps to a login page when we first enter it, and to a login page when we jump to our profile page, so we need to add the login page navigation component to the Navigation diagram of SplashActivity. Also add a navigation component to the profile page so that the login component is added twice
The illustration is as follows:
Nested diagrams are implemented using navigation tags nested
Navigation chart configuration:
Jump to login page code:
Inclode tags are nested in a way
The main navigation map
Login navigation chart
Navigate to the code for the login page: here