FileDocCategorySizeDatePackage
SearchEditText.javaAPI DocAndroid 5.1 API2195Thu Mar 12 22:22:56 GMT 2015android.support.v17.leanback.widget

SearchEditText

public class SearchEditText extends StreamingTextView
EditText widget that monitors keyboard changes.

Fields Summary
private static final String
TAG
private static final boolean
DEBUG
private OnKeyboardDismissListener
mKeyboardDismissListener
Constructors Summary
public SearchEditText(android.content.Context context)


       
        this(context, null);
    
public SearchEditText(android.content.Context context, android.util.AttributeSet attrs)

        this(context, attrs, R.style.TextAppearance_Leanback_SearchTextEdit);
    
public SearchEditText(android.content.Context context, android.util.AttributeSet attrs, int defStyle)

        super(context, attrs, defStyle);
    
Methods Summary
public booleanonKeyPreIme(int keyCode, android.view.KeyEvent event)

        if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {
            if (DEBUG) Log.v(TAG, "Keyboard being dismissed");
            mKeyboardDismissListener.onKeyboardDismiss();
            return false;
        }
        return super.onKeyPreIme(keyCode, event);
    
public voidsetOnKeyboardDismissListener(android.support.v17.leanback.widget.SearchEditText$OnKeyboardDismissListener listener)
Set a keyboard dismissed listener.

param
listener The listener.

        mKeyboardDismissListener = listener;