Skip to content

Instantly share code, notes, and snippets.

View sulemankhan447's full-sized avatar

Suleman Khan sulemankhan447

  • India
View GitHub Profile
@sulemankhan447
sulemankhan447 / KeyboardUtil.java
Created November 3, 2019 17:10 — forked from kristopherjohnson/KeyboardUtil.java
Methods to hide or show the soft keyboard in an Android activity
import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
/**
* Utility methods for manipulating the onscreen keyboard
*/
public class KeyboardUtil {
@sulemankhan447
sulemankhan447 / KeyboardUtils.java
Created November 3, 2019 17:10 — forked from marteinn/KeyboardUtils.java
Android utils class for showing and hiding a keyboard.
package se.marteinn.utils;
import android.content.Context;
import android.os.AsyncTask;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
/**
* Created by martinsandstrom on 2014-04-21.