Navigation refactoring
This commit is contained in:
@ -3,23 +3,26 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/nav_graph"
|
||||
app:startDestination="@id/FirstFragment">
|
||||
app:startDestination="@id/HomeFragment">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/FirstFragment"
|
||||
android:id="@+id/HomeFragment"
|
||||
android:name="it.danieleverducci.ojo.ui.SurveillanceFragment"
|
||||
android:label="@string/first_fragment_label"
|
||||
tools:layout="@layout/fragment_surveillance">
|
||||
|
||||
<action
|
||||
android:id="@+id/action_FirstFragment_to_SecondFragment"
|
||||
android:id="@+id/action_homeToSettings"
|
||||
app:destination="@id/SettingsFragment" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/SecondFragment"
|
||||
android:id="@+id/CameraUrlFragment"
|
||||
android:name="it.danieleverducci.ojo.ui.AddStreamFragment"
|
||||
android:label="@string/second_fragment_label"
|
||||
tools:layout="@layout/fragment_add_stream">
|
||||
<action
|
||||
android:id="@+id/action_cameraUrlToSettings"
|
||||
app:destination="@id/SettingsFragment" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/SettingsFragment"
|
||||
@ -28,7 +31,10 @@
|
||||
tools:layout="@layout/fragment_settings_item_list" >
|
||||
|
||||
<action
|
||||
android:id="@+id/action_SecondFragment_to_FirstFragment"
|
||||
app:destination="@id/FirstFragment" />
|
||||
android:id="@+id/action_settingsToHome"
|
||||
app:destination="@id/HomeFragment" />
|
||||
<action
|
||||
android:id="@+id/action_settingsToCameraUrl"
|
||||
app:destination="@id/CameraUrlFragment" />
|
||||
</fragment>
|
||||
</navigation>
|
Reference in New Issue
Block a user