Is there an equivalent of “tools:layout=” for FragmentContainerView?

As stated in the comment by tir38 this was fixed in later versions of Android Studio, you can now use the tools:layout attribute in the FragmentContainerView. In cases where you are using Navigation component,
if you define a startDestination for your Navigation graph
which uses the tools:layout attribute, this will automatically be reflected in your FragmentContainerView

<androidx.fragment.app.FragmentContainerView 
    ...
    app:navGraph="@navigation/nav_graph"/>
            
            
<navigation 
    ...
    app:startDestination="@id/someFragment">
    <fragment
        ...
        android:id="@+id/someFragment"
        tools:layout="@layout/fragment_splash"/>
</navigation>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)