Android ListPopupWindow隐藏键盘

时间:2016-03-04 15:45:09

标签: android

当我将InputMethodMode设置为ListPopupWindowInputMethodMode.Needed时,弹出窗口会保留在键盘后面。当我开始滚动弹出窗口列表时,它显示在键盘上方。我想一直在键盘后面保持弹出窗口。在滚动列表期间,似乎覆盖了InputMethodMode。

        m_listPopup = new ListPopupWindow(Context);
        m_listPopup.AnchorView = this;
        m_listPopup.SetAdapter(m_adapter);
        m_listPopup.Height = (int)Resources.GetDimension(Resource.Dimension.suggestions_popover_height);
        m_listPopup.Width = (int)Resources.GetDimension(Resource.Dimension.suggestions_popover_width);
        m_listPopup.InputMethodMode = ListPopupWindowInputMethodMode.Needed;

enter image description here

0 个答案:

没有答案