package Ġme . daemon . view . common . demo Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . util . Log Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġme . daemon . view . common .* Ċ Ċ class ĠMainActivity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĊĠĠĠĠĠĠĠ ĠLog . e (" MainActivity ", Ġ" screen Width =$ screen Width ") ĊĠĠĠĠĠĠĠ ĠLog . e (" MainActivity ", Ġ" screen Height =$ screen Height ") ĊĠĠĠĠĠĠĠ ĠLog . e (" MainActivity ", Ġ" dp 2 px ( 1 ) =${ dp 2 px ( 1 f )} ") ĊĠĠĠĠĠĠĠ ĠLog . e (" MainActivity ", Ġ" sp 2 px ( 1 ) =${ sp 2 px ( 1 f )} ") ĊĠĠĠĠĠĠĠ ĠLog . e (" MainActivity ", Ġ" px 2 dp ( 1 ) =${ px 2 dp ( 1 f )} ") ĊĠĠĠĠĠĠĠ ĠLog . e (" MainActivity ", Ġ" px 2 sp ( 1 ) =${ px 2 sp ( 1 f )} ") ĊĠĠĠ Ġ} Ċ } Ċ