PopupWindow setInputMethodMode - 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 setInputMethodMode method.

This code example shows how to use the following methods:setInputMethodMode
    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();
6
CodeRank
This code example shows how to use the following methods:setInputMethodMode, setTouchInterceptor
	 */ 
	public PopupMenuCompat(Context context, View view) {
		this.context = context;
		res = context.getResources();
		mAnchorView = view;
		mWindow = new PopupWindow(context);
		mWindow.setTouchInterceptor(this);
		mWindow.setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED);
		mWindowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
		mAdapter = new MenuAdapter(context);
		mMenu = new MenuImpl(context, mAdapter);
		setView(); 
 
	} 
 
	/** 
	 * Dismiss the popup window. 
	 */ 
	@Override 
	public void dismiss() { 
6
CodeRank
This code example shows how to use the following methods:setInputMethodMode
This code example shows how to use the following methods:setInputMethodMode
    private static final int POSITION_PROMPT_ABOVE = 0;
    private static final int POSITION_PROMPT_BELOW = 1;
 
    public IcsListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr) {
        mContext = context;
        mPopup = new PopupWindow(context, attrs, defStyleAttr);
        mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
    } 
 
    public void setAdapter(ListAdapter adapter) {
        if (mObserver == null) {
            mObserver = new PopupDataSetObserver();
        } else if (mAdapter != null) {
            mAdapter.unregisterDataSetObserver(mObserver);
        } 
        mAdapter = adapter;
        if (mAdapter != null) {
            adapter.registerDataSetObserver(mObserver);
        } 
 
4
CodeRank
setInputMethodMode Method Overview
Control how the popup operates with an input method: one of INPUT_METHOD_FROM_FOCUSABLE, INPUT_METHOD_NEEDED, or INPUT_METHOD_NOT_NEEDED.
See Code Examples for other Android PopupWindow Methods: