mirror of
https://github.com/imcarlost/Friendlists.git
synced 2026-04-10 10:56:54 -04:00
implement navigation
This commit is contained in:
8
app/src/main/res/layout/activity_main.xml
Normal file
8
app/src/main/res/layout/activity_main.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/main_fragment_container"
|
||||
android:name="androidx.navigation.fragment.NavHostFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:defaultNavHost="true" />
|
||||
9
app/src/main/res/navigation/main_navigation.xml
Normal file
9
app/src/main/res/navigation/main_navigation.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/main_navigation"
|
||||
app:startDestination="@id/userlist_navigation">
|
||||
|
||||
<include app:graph="@navigation/userlist_navigation" />
|
||||
|
||||
</navigation>
|
||||
Reference in New Issue
Block a user