Skip to content

Commit

Permalink
#19 Updated navigation control
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-100 committed Aug 9, 2022
1 parent 194285f commit 66a5023
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions app/src/main/res/navigation/nav_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,11 @@
android:label="@string/fragment_login_label"
tools:layout="@layout/fragment_login">

<action android:id="@+id/login_to_register"
app:destination="@id/RegisterFragment" />

<!--change this is only for dev purpose-->
<action android:id="@+id/login_to_dashboard"
app:destination="@id/DashboardFragment" />

<action android:id="@+id/login_to_login"
app:destination="@id/LoginFragment" />

<action android:id="@+id/login_to_register"
app:destination="@id/RegisterFragment" />

<action android:id="@+id/login_to_members"
app:destination="@id/MembersFragment" />
Expand All @@ -33,6 +28,9 @@
android:label="@string/fragment_register_label"
tools:layout="@layout/fragment_register">

<action android:id="@+id/register_to_register"
app:destination="@id/RegisterFragment" />

<action android:id="@+id/register_to_login"
app:destination="@id/LoginFragment" />

Expand All @@ -56,8 +54,13 @@

<action android:id="@+id/members_to_add_member"
app:destination="@id/AddMemberFragment" />
</fragment>

<action android:id="@+id/members_to_edit_members"
app:destination="@id/EditMembers" />

<action android:id="@+id/members_to_edit_member"
app:destination="@id/EditSpecificMember" />
</fragment>


<!-- Main Fragments -->
Expand Down Expand Up @@ -157,7 +160,7 @@
<action android:id="@+id/rooms_to_dashboard"
app:destination="@id/DashboardFragment" />

<action android:id="@+id/action_rooms_to_room"
<action android:id="@+id/rooms_to_room"
app:destination="@id/RoomFragment" />

<action android:id="@+id/rooms_to_add_room"
Expand Down Expand Up @@ -216,9 +219,16 @@
android:label="@string/fragment_room_label"
tools:layout="@layout/fragment_room">

<action android:id="@+id/action_room_to_rooms"
<action android:id="@+id/room_to_rooms"
app:destination="@id/RoomViewFragment" />

<argument android:name="itemPos"
app:argType="integer"
android:defaultValue="-1" />

<argument android:name="backButton"
app:argType="integer"
android:defaultValue="-1" />
</fragment>

<fragment android:id="@+id/ItemViewFragment"
Expand Down

0 comments on commit 66a5023

Please sign in to comment.