Skip to content

Instantly share code, notes, and snippets.

@theredfox
theredfox / EditTextKBDetector.java
Created September 30, 2015 11:46
EditText with KeyBoard detector
import android.content.Context;
import android.content.Intent;
import android.support.v4.content.LocalBroadcastManager;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;
import android.widget.TextView;