package Ġcom . apps . mor fi wifi . mor fi _ project _ sam ane Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . design . widget . Bottom Sheet Behavior Ċ import Ġandroid . support . v 7 . app . AppCompatActivity Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġcom . apps . mor fi wifi . mor fi _ project _ sam ane . R . id . bottom _ sheet Ċ // import Ġkotlinx . android . synt hetic . main . bot t tom _ sheet .* ĊĊ Ċ class ĠBottom _ sheet Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ bottom _ sheet ) ĊĊĊĊĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġfun Ġshow sheet Ġ( view : View ){ Ċ // ĠĠĠĠĠĠĠ Ġbottom sheet . show With Sheet View ( LayoutInflater . from ( application Context ). inflate ( R . layout . activity _ login , Ġbottom sheet , Ġfalse )); Ċ // ĠĠĠĠĠĠĠ Ġval Ġbottom Sheet Behavior Ġ= ĠBottom Sheet Behavior . from ( bottom _ sheet ) ĊĠĠĠĠĠĠĠ Ġ// bottom Sheet Behavior . setState ( Bottom Sheet Behavior . STATE _ COLL AP SED ); Ċ // ĠĠĠĠĠĠĠ Ġbottom Sheet Behavior . setState ( Bottom Sheet Behavior . STATE _ EXP AN DED ); ĊĠĠĠĠĠĠĠ Ġ// bottom Sheet Behavior . setState ( Bottom Sheet Behavior . STATE _ HIDDEN ); ĊĠĠĠ Ġ} ĊĊ Ċ } Ċ