Code example for PopupWindow

Methods: setInputMethodMode

0
    public void setOnDismissListener(PopupWindow.OnDismissListener listener) {
        mPopup.setOnDismissListener(listener);
    } 
 
    public void setInputMethodMode(int mode) {
        mPopup.setInputMethodMode(mode);
    } 
 
    public void clearListSelection() { 
        final DropDownListView list = mDropDownList;
        if (list != null) {
            // WARNING: Please read the comment where mListSelectionHidden is declared 
            list.mListSelectionHidden = true;
            //XXX list.hideSelector(); 
            list.requestLayout();
        } 
    } 
 
    public boolean isShowing() { 
        return mPopup.isShowing();
    }