package Ġcom . y ig ito zg um us . and roi dex periment s . demos Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . activity . Component Activity Ċ import Ġcom . y ig it ou zg um us . and roi dex periment s . databinding . Activity Parent Child Fragment Demo Binding Ċ Ċ class ĠParent Child Fragment Demo Activity Ġ: ĠComponent Activity () Ġ{ ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding : ĠActivity Parent Child Fragment Demo Binding ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠActivity Parent Child Fragment Demo Binding . inflate ( layout Inflater ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( binding . root ) ĊĠĠĠ Ġ} Ċ }