SupportMenuInflater

(SESL variant) This class is used to instantiate menu XML files into Menu objects.

For performance reasons, menu inflation relies heavily on pre-processing of XML files that is done at build time. Therefore, it is not currently possible to use SupportMenuInflater with an XmlPullParser over a plain XML file at runtime; it only works with an XmlPullParser returned from a compiled resource (R. something file.)

Constructors

Link copied to clipboard
constructor(context: Context)
Constructs a menu inflater.

Functions

Link copied to clipboard
open fun inflate(@LayoutRes menuRes: Int, menu: Menu)
Inflate a menu hierarchy from the specified XML resource.