Hi, all i have a nav graph with deep link, i want ...
# android
a
Hi, all i have a nav graph with deep link, i want refer this deep link url string from string resource. It is doable ?
Copy code
<navigation xmlns:android="<http://schemas.android.com/apk/res/android>"
    xmlns:app="<http://schemas.android.com/apk/res-auto>"
    android:id="@+id/nav_graph"
    app:startDestination="@id/splash_fragment">
    <fragment
        android:id="@+id/splash_fragment"
        android:name="com.platform.tv.feature.onboarding.ui.SplashFragment">
>>>>>        <deepLink app:uri="<ottdns.com://com.ott.dns/splash>" />
        <action
            android:id="@+id/action_splash_to_showcase"
            app:destination="@id/showcase_fragment"
            app:popUpTo="@+id/nav_graph"
            app:popUpToInclusive="true" />
    </fragment>
to
Copy code
<navigation xmlns:android="<http://schemas.android.com/apk/res/android>"
    xmlns:app="<http://schemas.android.com/apk/res-auto>"
    android:id="@+id/nav_graph"
    app:startDestination="@id/splash_fragment">
    <fragment
        android:id="@+id/splash_fragment"
        android:name="com.ott.dns.platform.tv.feature.onboarding.ui.SplashFragment">
 >>>       <deepLink app:uri="@string/deep_link_splash" />
        <action
            android:id="@+id/action_splash_to_showcase"
            app:destination="@id/showcase_fragment"
            app:popUpTo="@+id/nav_graph"
            app:popUpToInclusive="true" />
    </fragment>
not kotlin but kotlin colored 4
c
This is a workspace for the Kotlin Programming Language. Your general Android question should be posted somewhere else. Check out the channel description to find appropriate resources.