package Ġds . vk plus . ui Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . graphics . Color Ċ import Ġandroid . view . Gravity Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroid . widget . Frame Layout Ċ import Ġandroid . widget . TextView Ċ import Ġde . keyboard sur fer . android . widget . c rout on . C rout on Ċ import Ġde . keyboard sur fer . android . widget . c rout on . Style Ċ import Ġds . vk plus . App Ċ import Ġds . vk plus . R Ċ Ċ object ĠC rout on Styles Ġ{ Ċ ĉ val ĠINFO Ġ= ĠStyle . Builder (). set BackgroundColor Value ( App . instance . resources . getColor ( R . color . c rout on _ blue )). build () Ċ ĉ val ĠERROR Ġ= ĠStyle . Builder (). set BackgroundColor Value ( App . instance . resources . getColor ( R . color . c rout on _ red )). build () Ċ } ĊĊ Ċ fun ĠActivity . c rout on ( text : ĠString , Ġstyle : ĠStyle Ġ= ĠC rout on Styles . INFO ) Ġ= ĠC rout on . makeText ( this , Ġtext , Ġstyle /* , Ġthis . findViewById ( R . id . content ) Ġas ĠViewGroup */ ). show () ĊĊ Ċ /* Ċ object ĠColors Ġ{ Ċ ĉ val Ġinfo Ġ= ĠApp . instance . resources . getColor ( R . color . c rout on _ blue ) Ċ ĉ val Ġerror Ġ= ĠApp . instance . resources . getColor ( R . color . c rout on _ blue ) Ċ } Ċ Ċ fun ĠActivity . sn ack ( text : ĠString , Ġback Color : ĠInt Ġ= Ġthis . resources . getColor ( R . color . c rout on _ blue ), ĠtextColor : ĠInt Ġ= ĠColor . WHITE ) Ġ{ Ċ ĉ val Ġsn ack Ġ= ĠSn ackbar . make ( this . findViewById ( R . id . content ), Ġtext , ĠSn ackbar . LENGTH _ LONG ) Ċ ĉ val Ġview Ġ= Ġsn ack . view Ġas ĠSn ackbar . Snackbar Layout Ċ ĉ view . set BackgroundColor ( back Color ) Ċ ĉ ( view . findViewById ( android . support . design . R . id . sn ackbar _ text ) Ġas ĠTextView ). setTextColor ( textColor ) Ċ ĉ val Ġparams Ġ= Ġview . layout Params Ġas ĠFrame Layout . LayoutParams Ċ ĉ params . gravity Ġ= ĠGr avity . TOP Ċ ĉ view . layout Params Ġ= Ġparams Ċ ĉ sn ack . show () Ċ }*/ ĊĊĊĊ