Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1014918 // aHideKeyboard

JavaX fragment (include)

static void aHideKeyboard() {
  View view = aActivity().getCurrentFocus();
  if (view != null) {
    InputMethodManager inputManager = (InputMethodManager) aActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
    inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014918
Snippet name: aHideKeyboard
Eternal ID of this version: #1014918/1
Text MD5: 7a36e00f550b338ecf7113498dfba681
Author: stefan
Category: javax / android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-06 13:08:22
Source code size: 328 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 326 / 358
Referenced in: [show references]