package Ġorg . demo . weather app Ċ Ċ import Ġarch knife . annotation . Provide Activity Ċ import Ġarch tree . activity . Activity Builder Ċ import Ġarch tree . activity . Activity Resource Ċ import Ġarch tree . activity . Arch Tree Activity Ċ Ċ @ Provide Activity Ċ class ĠMainActivity Ġ: ĠArch Tree Activity < MainActivity ViewModel >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġprovide Activity Resource ( builder : ĠActivity Builder < MainActivity ViewModel >): ĠActivity Resource < MainActivity ViewModel > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġbuilder . set ViewModel ( MainActivity ViewModel :: class . java , ĠBR . viewModel ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Hide Support Bar ( true ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. setLayout Id ( R . layout . activity _ main ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠ Ġ} Ċ } Ċ