Hide Soft-keys in android and not to show even on user interaction during the app -
note: please don't close question duplicate other answers hide softkey bar [navigation bar @ bottom 3 control buttons] till user interaction not there.
hi, developing paint app in user can draw in ms-paint.
to use full estate of user's screen, wish hide softkeys bar while user drawing or painting anything.
so, know how hide soft-keys bar on user interaction [on interaction] soft-keys bar appear on screen. [before lollipop]
is there way can hide soft-keys bar , appear after user has exited app. [i think have seen happening in of games]
note: somewhere stated os shows soft-keys bar goofy app doesn't ruin user's experience.
any lead appreciated.
updates: 1. link had followed earlier: how hide soft-key bar on android phone?
- by soft-keys bar mean navigation bar @ bottom of screen shown in question in point 1.
thanks.
hide keyboard inputmethodmanager , set edittext focusable false trick. below code hide keyboard , set edittext focusable false.
edittext1.setfocusable(false); inputmethodmanager imm = (inputmethodmanager)getsystemservice( context.input_method_service); imm.hidesoftinputfromwindow(edittext1.getwindowtoken(), 0);
to make edittext editable again, use
edittext1.setfocusableintouchmode(true); edittext1.setfocusable(true);
Comments
Post a Comment