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
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:setInputMethodMode
        this(context, null, R.attr.listPopupWindowStyle);
    } 
 
    public IcsListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr) {
        mContext = context;
        mPopup = new PopupWindow(context, attrs, defStyleAttr);
        mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
    } 
 
    public IcsListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        mContext = context;
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
            Context wrapped = new ContextThemeWrapper(context, defStyleRes);
            mPopup = new PopupWindow(wrapped, attrs, defStyleAttr);
        } else { 
            mPopup = new PopupWindow(context, attrs, defStyleAttr, defStyleRes);
        } 
        mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
    } 
 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java
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: