<Kotlin, embed root_preferences in existing fragme...
# stackoverflow
u
Kotlin, embed root_preferences in existing fragment Kotlin, I want to embed root_preferences.xml in a fragment with existing content. I navigate using I want to embed the preferences like this: // ... existing items // ... more items here What I did Create new Settings Fragment. This does NOT create a layout file, but an XML file at res/xml/root_preferences.xml, make no changes to code. Create a 'container fragment' new Fragment (Blank) name it, ContainerSettingsFragment. it creates the layout file fragment_container_settings. Delete code...