package Ġcom . m vi architecture . app . utils Ċ Ċ import Ġandroid . view . View Ċ import Ġcom . google . android . material . sn ackbar . Snackbar Ċ import Ġcom . m vi architecture . app . R ĊĊ Ċ fun Ġsn ackBar ( message : ĠString ?, Ġroot View : ĠView ) Ġ{ ĊĠĠĠ Ġval Ġsn ackBar Ġ= ĠSn ackbar . make ( root View , Ġmessage !! , ĠSn ackbar . LENGTH _ LONG ) ĊĠĠĠ Ġval Ġview Ġ= Ġsn ackBar . view ĊĠĠĠ Ġval ĠtextView Ġ= Ġview . findViewById < View >( R . id . sn ackbar _ text ) ĊĠĠĠ ĠtextView . text Alignment Ġ= ĠView . TEXT _ ALIGNMENT _ CENTER ĊĠĠĠ Ġsn ackBar . show () Ċ } ĊĊĊĊĊĊ