android/app/src/main/res/navigation/mobile_navigation.xml

152 lines
5.5 KiB
XML

<?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/nav_servers">
<fragment
android:id="@+id/nav_settings"
android:name="io.annaclemens.xivchat.ui.settings.KeyVisualisationFragment"
android:label="@string/menu_settings"
tools:layout="@layout/fragment_settings" />
<fragment
android:id="@+id/nav_servers"
android:name="io.annaclemens.xivchat.ui.servers.ServersFragment"
android:label="@string/menu_servers"
tools:layout="@layout/fragment_servers">
<action
android:id="@+id/action_to_scanned_servers"
app:destination="@id/nav_scanned_servers"
app:enterAnim="@anim/slide_in_right"
app:exitAnim="@anim/fade_out"
app:popEnterAnim="@anim/fade_in"
app:popExitAnim="@anim/slide_out_right" />
<action
android:id="@+id/action_to_new_server"
app:destination="@id/nav_new_server"
app:enterAnim="@anim/slide_in_right"
app:exitAnim="@anim/fade_out"
app:popEnterAnim="@anim/fade_in"
app:popExitAnim="@anim/slide_out_right" />
</fragment>
<fragment
android:id="@+id/nav_about"
android:name="io.annaclemens.xivchat.ui.about.AboutFragment"
android:label="@string/menu_about"
tools:layout="@layout/fragment_about" />
<fragment
android:id="@+id/nav_messages_tabs"
android:name="io.annaclemens.xivchat.ui.messages.MessagesTabsFragment"
android:label="@string/menu_messages"
tools:layout="@layout/fragment_messages_tabs" >
<argument
android:name="tellPlayer"
app:argType="string"
app:nullable="true"
android:defaultValue="@null" />
<argument
android:name="tellWorld"
app:argType="string"
app:nullable="true"
android:defaultValue="@null" />
</fragment>
<fragment
android:id="@+id/nav_friend_list"
android:name="io.annaclemens.xivchat.ui.friends.FriendListFragment"
android:label="@string/menu_friend_list"
tools:layout="@layout/fragment_friend_list">
<action
android:id="@+id/action_to_player_detail"
app:destination="@id/nav_player_detail"
app:enterAnim="@anim/slide_in_right"
app:exitAnim="@anim/fade_out"
app:popEnterAnim="@anim/fade_in"
app:popExitAnim="@anim/slide_out_right" />
<action
android:id="@+id/action_send_tell"
app:destination="@id/nav_messages_tabs">
<argument
android:name="tellPlayer"
app:argType="string" />
<argument
android:name="tellWorld"
app:argType="string" />
</action>
</fragment>
<fragment
android:id="@+id/nav_player_detail"
android:name="io.annaclemens.xivchat.ui.friends.PlayerDetailFragment"
tools:layout="@layout/player_details">
<argument
android:name="playerName"
app:argType="string" />
<argument
android:name="playerWorld"
app:argType="integer" />
</fragment>
<fragment
android:id="@+id/nav_targeting_list"
android:name="io.annaclemens.xivchat.ui.targeting.TargetingListFragment"
android:label="@string/menu_targeting"
tools:layout="@layout/fragment_targeting" />
<fragment
android:id="@+id/nav_scanned_servers"
android:name="io.annaclemens.xivchat.ui.servers.scan.ScannedServersFragment"
android:label="@string/menu_scanned_servers"
tools:layout="@layout/fragment_scanned_servers">
<!-- FIXME: this will always pop up to server list, even when just going back to the scanned list on a mistap, for example -->
<action
android:id="@+id/action_add_scanned_server"
app:destination="@id/nav_new_server"
app:enterAnim="@anim/slide_in_right"
app:exitAnim="@anim/fade_out"
app:popEnterAnim="@anim/fade_in"
app:popExitAnim="@anim/slide_out_right"
app:popUpTo="@id/nav_servers" />
</fragment>
<fragment
android:id="@+id/nav_new_server"
android:name="io.annaclemens.xivchat.ui.servers.NewServerFragment"
android:label="@string/add_server_title"
tools:layout="@layout/fragment_new_server">
<argument
android:name="id"
app:argType="integer" />
<argument
android:name="name"
app:argType="string"
app:nullable="true" />
<argument
android:name="host"
app:argType="string"
app:nullable="true" />
<argument
android:name="port"
android:defaultValue="0"
app:argType="integer" />
<argument
android:name="relay"
app:argType="boolean"
android:defaultValue="false" />
<argument
android:name="auth"
app:argType="string"
app:nullable="true"
android:defaultValue="@null" />
<argument
android:name="target"
app:argType="string"
app:nullable="true"
android:defaultValue="@null" />
</fragment>
</navigation>