package Ġcom . su cho . draggable player Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ Ċ class ĠMainActivity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠ Ġprivate Ġvar Ġplay Screen Fragment Ġ= ĠPlay Screen Fragment . newInstance () ĊĊĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĠĠĠ Ġsetup Play Screen Fragment () ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġsetup Play Screen Fragment () Ġ{ ĊĠĠĠ Ġsupport FragmentManager ĊĠĠĠĠĠĠĠ Ġ. beginTransaction () ĊĠĠĠĠĠĠĠ Ġ. replace ( R . id . play _ screen _ frame _ layout , Ġplay Screen Fragment , ĠPlay Screen Fragment . TAG ) ĊĠĠĠĠĠĠĠ Ġ. commit Allow ing State Loss () ĊĠ Ġ} Ċ }