package Ġcom . dro ib it . did do Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . we arable . view . Watch View Stub Ċ import Ġandroid . widget . TextView Ċ Ċ public Ġclass ĠMainActivity Ġ: ĠActivity () Ġ{ ĊĊĠĠĠ Ġprivate Ġvar Ġm TextView : ĠTextView ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĠĠĠĠĠĠĠ Ġval Ġstub Ġ= ĠfindViewById ( R . id . watch _ view _ stub ) Ġas ĠWatch View Stub ĊĠĠĠĠĠĠĠ Ġstub . setOn Layout In fl ated Listener ( object Ġ: ĠWatch View Stub . On Layout In fl ated Listener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġoverride Ġfun Ġon Layout In fl ated ( stub : ĠWatch View Stub ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm TextView Ġ= Ġstub . findViewById ( R . id . text ) Ġas ĠTextView ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠ Ġ} Ċ } Ċ