Last active
June 20, 2019 20:02
-
-
Save oliverspryn/f1b59a9384ee4afc14e94d7fecbaf21e to your computer and use it in GitHub Desktop.
Implements a custom navigator host in an activity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <FrameLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_height="match_parent" | |
| android:layout_width="match_parent"> | |
| <fragment | |
| android:id="@+id/navigation_host" | |
| android:name="com.example.MyNavHostFragment" | |
| android:layout_height="match_parent" | |
| android:layout_width="match_parent" | |
| app:defaultNavHost="true" | |
| app:navGraph="@navigation/main_graph" | |
| tools:context=".MainActivity" /> | |
| </FrameLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment