Skip to content

<fragment>

A tag that renders a UI fragment

Attributes

Name Description Required Default
dependenciesScope Defines the method for passing Dependencies to immediate children. Valid values are new, copy, and inherit. no auto
for The name of the parent's attribute that will be assigned the fragment's output. no null
name The Resources name of the fragment. yes null

Example

XML
<AppBar>
    <fragment for="leading" name="profile/icon"/>
</AppBar>