package Ġdev . en ro . example . master detail Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġdagger . h ilt . android . Android EntryPoint Ċ import Ġdev . en ro . annotations . Navigation Destination Ċ import Ġdev . en ro . core . get Navigation Handle Ċ import Ġdev . en ro . core . navigation Handle Ċ import Ġdev . en ro . example . core . navigation . Detail Key Ċ import Ġdev . en ro . example . core . navigation . List Key Ċ import Ġdev . en ro . example . core . navigation . Master Detail Key Ċ import Ġdev . en ro . master detail . Master Detail Property Ċ Ċ @ Android EntryPoint Ċ @ Navigation Destination ( Master Detail Key :: class ) Ċ class ĠMaster Detail Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġnavigation Ġby Ġnavigation Handle < Master Detail Key >() ĊĠĠĠ Ġprivate Ġval Ġmaster Detail Ġby ĠMaster Detail Property ( ĊĠĠĠĠĠĠĠ Ġlifecycle Owner Ġ= Ġthis , ĊĠĠĠĠĠĠĠ Ġow ning Type Ġ= ĠMaster Detail Activity :: class , ĊĠĠĠĠĠĠĠ Ġmaster Container Ġ= ĠR . id . master , ĊĠĠĠĠĠĠĠ Ġmaster Key Ġ= ĠList Key :: class , ĊĠĠĠĠĠĠĠ Ġdetail Container Ġ= ĠR . id . detail , ĊĠĠĠĠĠĠĠ Ġdetail Key Ġ= ĠDetail Key :: class ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ ĠList Key ( navigation . key . userId , Ġnavigation . key . filter ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . master _ detail ) ĊĠĠĠ Ġ} Ċ }