Using FragmentContainerView with Navigation component? : <p>After updating to Navigation <a href="https://developer.android.com/jetpack/androidx/releases/navigation#2.2.0-beta01" rel="noreferrer">2.2.0-beta01</a> from the previous version, lint gives a warning about replacing the <code>&lt;fragment&gt;</code> tag with <code>FragmentContainerView</code>.</p>

<p>However, replacing the tag alone seems to prevent the navigation graph from being inflated.</p>

<p>According to <a href="https://developer.android.com/jetpack/androidx/releases/navigation#2.2.0-alpha01" rel="noreferrer">2.2.0-alpha01</a>, <code>FragmentContainerView</code> is used internally. Should we ignore the lint warning?</p>

<hr>

<p><strong>activity_main.xml</strong></p>

<pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;

    &lt;!-- Lint warning: "Replace the &lt;fragment&gt; tag with FragmentContainerView. --&gt;
    &lt;fragment
        android:id="@+id/nav_host_main"
        android:name="androidx.navigation.fragment.NavHostFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:defaultNavHost="true"
        app:navGraph="@navigation/nav_graph_main"/&gt;

    &lt;!-- other elements --&gt;

&lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
</code></pre>
