package Ġgr . black sw amp . b maps . utils Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . View Ċ import Ġandroid . view . WindowManager Ċ import Ġandroid . view . input method . Input Method Manager Ċ Ċ fun ĠActivity . show Keyboard () Ġ{ ĊĠ Ġwindow . set Soft Input Mode ( WindowManager . LayoutParams . SOFT _ INPUT _ STATE _ ALWAYS _ VISIBLE ) Ċ } Ċ Ċ fun ĠActivity . hide Keyboard () Ġ{ ĊĠ Ġval Ġimm Ġ= Ġget System Service ( Context . INPUT _ METHOD _ SERVICE ) Ġas ĠInput Method Manager ĊĠ Ġimm . hide Soft Input From Window ( findViewById < View >( android . R . id . content ). window Token , Ġ 0 ) Ċ }