Highlight current tab in navigation drawer

This commit is contained in:
Kirill Kamakin
2022-11-20 10:36:26 +01:00
parent 7d43e1afc2
commit 6c3abbd51c
9 changed files with 42 additions and 19 deletions

View File

@@ -2,21 +2,25 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/recipes_list"
android:checkable="true"
android:icon="@drawable/ic_list"
android:title="@string/menu_navigation_drawer_recipes_list" />
<item
android:id="@+id/add_recipe"
android:checkable="true"
android:icon="@drawable/ic_add"
android:title="@string/menu_navigation_drawer_add_recipe" />
<item
android:id="@+id/change_url"
android:checkable="true"
android:icon="@drawable/ic_change"
android:title="@string/menu_navigation_drawer_change_url" />
<item
android:id="@+id/login"
android:checkable="true"
android:icon="@drawable/ic_login"
android:title="@string/menu_navigation_drawer_login" />

View File

@@ -51,8 +51,7 @@
<action
android:id="@+id/action_baseURLFragment_to_recipesListFragment"
app:destination="@id/recipesListFragment"
app:popUpTo="@id/nav_graph"
app:popUpToInclusive="true" />
app:popUpTo="@id/nav_graph" />
<argument
android:name="isOnboarding"
app:argType="boolean" />
@@ -66,8 +65,7 @@
<action
android:id="@+id/action_global_authenticationFragment"
app:destination="@id/authenticationFragment"
app:popUpTo="@id/recipesListFragment" />
app:destination="@id/authenticationFragment" />
<action
android:id="@+id/action_global_recipesListFragment"