admin管理员组文章数量:1026900
I want to show a floating window using the windowManager.addView(view, params)
API. However, after selecting text in the floating window, the text is highlighted, but the context menu doesn't appear. While I intend to build my own context menu, I can't even get the system context menu to show up.
Interestingly, using the same layout in another activity with setContentView(view)
, the text can be selected, and the system context menu shows up as expected.
I want to show a floating window using the windowManager.addView(view, params)
API. However, after selecting text in the floating window, the text is highlighted, but the context menu doesn't appear. While I intend to build my own context menu, I can't even get the system context menu to show up.
Interestingly, using the same layout in another activity with setContentView(view)
, the text can be selected, and the system context menu shows up as expected.
本文标签:
版权声明:本文标题:android - how to show a context menu in a textView added by “windowManager.addView(view, params)” - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745652511a2161402.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论