You should click on "text" tab in navigation editor (xml file of the navigation graph), and add:
tools:layout="@layout/layout_name"
inside destination element.
Should be something like this:
<fragment
android:id="@+id/someFragment"
android:name="com.freesoulapps.navigationtest.fragments.SomeFragment"
android:label="Some Fragment"
tools:layout="@layout/layout_name">
</fragment>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…