开发者

How to remove input method from android's TextView context menu

I have a context menu on a TextView representing a user name in my app. When the context menu appears I want to have certain options such as View Statistics etc. The context menu is appearing fine and everything is working great except it's adding Input method to the context menu and I do not want it there. It's irrelevant to what the context menu is there for and there is not te开发者_运维知识库xt entry. How can I remove this item from the context menu? I've tried removing item 0 in the context menu and adding

android:editable="false"

to the XML file to no avail. Any ideas?


How about menu.removeItem(android.R.id.switchInputMethod);?


Im pretty sure that isn't possible, the input method is how the user changes the current IME (soft keyboard) if the have multiple keyboards installed. Its a global setting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜