package Ġcom . net izen char . config Ċ Ċ import Ġandroid . R . style . Theme _ Trans luc ent _ No Title Bar Ċ import Ġcom . net izen char . R Ċ import Ġandroid . annotation . Suppress Lint Ċ import Ġandroid . app . Activity Ċ import Ġandroid . app . Dialog Ċ Ċ @ Suppress Lint (" Inf late Params ") Ċ class ĠLoading ( activity : ĠActivity ) Ġ{ ĊĠ Ġprivate Ġval Ġdialog Ġ= ĠDialog ( activity , ĠTheme _ Trans luc ent _ No Title Bar ) ĊĊĠ Ġinit Ġ{ ĊĠĠĠ Ġval Ġview Ġ= Ġactivity . layout Inflater . inflate ( R . layout . activity _ main , Ġnull ) ĊĠĠĠ Ġdialog . set ContentView ( view ) ĊĠĠĠ Ġdialog . set Cancel able ( false ) ĊĠ Ġ} ĊĊĠ Ġfun Ġopen Dialog () Ġ{ ĊĠĠĠ Ġdialog . show () ĊĠ Ġ} ĊĊĠ Ġfun Ġclose Dialog () Ġ{ ĊĠĠĠ Ġdialog . dismiss () ĊĠ Ġ} Ċ }