Google 致力于为黑人社区推动种族平等。查看具体举措

NavInflater

public final class NavInflater
extends Object

java.lang.Object
   ↳ androidx.navigation.NavInflater


Class which translates a navigation XML file into a NavGraph

Summary

Public constructors

NavInflater(Context context, NavigatorProvider navigatorProvider)

Public methods

NavGraph inflate(int graphResId)

Inflate a NavGraph from the given XML resource id.

Inherited methods

Public constructors

public NavInflater (Context context, 
                NavigatorProvider navigatorProvider)

Parameters
context Context

navigatorProvider NavigatorProvider

Public methods

inflate

public NavGraph inflate (int graphResId)

Inflate a NavGraph from the given XML resource id.

Returns
NavGraph