---
title: "android 控制软键盘消失"
author: "jguangyou"
date: "2012-06-07T11:35:50Z"
tags: []
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2012-06-07T11:35:50Z"
id: 1554282
url: "https://deep-fish.iteye.com/blog/1554282"
---

```java

   InputMethodManager imm =(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); 
 imm.hideSoftInputFromWindow(mEditText.getWindowToken(), 0); 

```