Add: Prefs' navigation menu and graph

This commit is contained in:
machiav3lli 2022-01-14 01:41:26 +01:00
parent 1798c42d38
commit f10a7c09a4
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/userTab"
android:icon="@drawable/ic_person"
android:title="@string/prefs_personalization" />
<item
android:id="@+id/updateTab"
android:icon="@drawable/ic_download"
android:title="@string/updates" />
<item
android:id="@+id/otherTab"
android:icon="@drawable/ic_tune"
android:title="@string/other" />
</menu>

View File

@ -0,0 +1,21 @@
<?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"
xmlns:tools="http://schemas.android.com/tools"
app:startDestination="@id/userTab">
<fragment
android:id="@+id/userTab"
android:name="com.looker.droidify.ui.fragments.PrefsUserFragment"
tools:layout="@layout/fragment_prefs" />
<fragment
android:id="@+id/updateTab"
android:name="com.looker.droidify.ui.fragments.PrefsUpdatesFragment"
tools:layout="@layout/fragment_prefs" />
<fragment
android:id="@+id/otherTab"
android:name="com.looker.droidify.ui.fragments.PrefsOtherFragment"
tools:layout="@layout/fragment_prefs" />
</navigation>