PopupWindow getInputMethodMode - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for PopupWindow getInputMethodMode method.

This code example shows how to use the following methods:getInputMethodMode
    public boolean isShowing() { 
        return mPopup.isShowing();
    } 
 
    private boolean isInputMethodNotNeeded() { 
        return mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED;
    } 
 
    public ListView getListView() {
        return mDropDownList;
    } 
 
    private int buildDropDown() { 
        ViewGroup dropDownView;
        int otherHeights = 0;
 
        if (mDropDownList == null) {
            Context context = mContext;
 
            mDropDownList = new DropDownListView(context, !mModal);
6
CodeRank
This code example shows how to use the following methods:getInputMethodMode
            list.setSelection(position);
            if (list.getChoiceMode() != ListView.CHOICE_MODE_NONE) {
                list.setItemChecked(position, true);
            } 
        } 
    } 
 
    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();
    } 
6
CodeRank
This code example shows how to use the following methods:getInputMethodMode
    public boolean isShowing() { 
        return mPopup.isShowing();
    } 
 
    private boolean isInputMethodNotNeeded() { 
        return mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED;
    } 
 
    public ListView getListView() {
        return mDropDownList;
    } 
 
    private int buildDropDown() { 
        ViewGroup dropDownView;
        int otherHeights = 0;
 
        if (mDropDownList == null) {
            Context context = mContext;
 
            mDropDownList = new DropDownListView(context, !mModal);
5
CodeRank
This code example shows how to use the following methods:getBackground, getContentView, getInputMethodMode, isShowing, setContentView
        int heightSpec = 0;
 
        boolean noInputMethod = isInputMethodNotNeeded();
        //XXX mPopup.setAllowScrollingAnchorParent(!noInputMethod); 
 
        if (mPopup.isShowing()) {
            if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) {
                // The call to PopupWindow's update method below can accept -1 for any 
                // value you do not want to update. 
                widthSpec = -1;
            } else if (mDropDownWidth == ViewGroup.LayoutParams.WRAP_CONTENT) {
                widthSpec = mDropDownAnchorView.getWidth();
            } else { 
                widthSpec = mDropDownWidth;
            } 
 
            if (mDropDownHeight == ViewGroup.LayoutParams.MATCH_PARENT) {
                // The call to PopupWindow's update method below can accept -1 for any 
                // value you do not want to update. 
                heightSpec = noInputMethod ? height : ViewGroup.LayoutParams.MATCH_PARENT;

3
CodeRank
This code example shows how to use the following methods:getBackground, getContentView, getInputMethodMode, isShowing, setContentView
        int heightSpec = 0;
 
        boolean noInputMethod = isInputMethodNotNeeded();
        //XXX mPopup.setAllowScrollingAnchorParent(!noInputMethod); 
 
        if (mPopup.isShowing()) {
            if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) {
                // The call to PopupWindow's update method below can accept -1 for any 
                // value you do not want to update. 
                widthSpec = -1;
            } else if (mDropDownWidth == ViewGroup.LayoutParams.WRAP_CONTENT) {
                widthSpec = mDropDownAnchorView.getWidth();
            } else { 
                widthSpec = mDropDownWidth;
            } 
 
            if (mDropDownHeight == ViewGroup.LayoutParams.MATCH_PARENT) {
                // The call to PopupWindow's update method below can accept -1 for any 
                // value you do not want to update. 
                heightSpec = noInputMethod ? height : ViewGroup.LayoutParams.MATCH_PARENT;

2
CodeRank
This code example shows how to use the following methods:getInputMethodMode
    public boolean isShowing() { 
        return mPopup.isShowing();
    } 
 
    private boolean isInputMethodNotNeeded() { 
        return mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED;
    } 
 
    public ListView getListView() {
        return mDropDownList;
    } 
 
    private int buildDropDown() { 
        ViewGroup dropDownView;
        int otherHeights = 0;
 
        if (mDropDownList == null) {
            Context context = mContext;
 
            mDropDownList = new DropDownListView(context, !mModal);
4
CodeRank
getInputMethodMode Method Overview
Return the current value in setInputMethodMode(int).
See Code Examples for other Android PopupWindow Methods: