[英]Copy paste option not appearing for EditText
I have created a Activity
which extends FixedExpandableListActivity
. 我创建了一个Activity
,它扩展了FixedExpandableListActivity
。 In my Activity, I am having EditText
where in after entering some text, and doing a long press on the EditText
, copy paste option is not appearing. 在我的活动中,我有EditText
,在其中输入了一些文本之后,在EditText
上长按,复制粘贴选项没有出现。 Doing multiple taps on the EditText
, copy paste option pops up and disappear. 多次点击EditText
,复制粘贴选项弹出并消失。
Issue is observed on 4.1.2. 在4.1.2上发现了问题。
Can some one please help out how to fix this issue. 有人可以帮忙解决此问题。
My gremlin for this problem was a combination of windowSoftInputMode="adjustResize"
and a View.OnLayoutChangeListener
which was reparenting the EditText
, for unrelated reasons. 我对这个问题的windowSoftInputMode="adjustResize"
是windowSoftInputMode="adjustResize"
和一个View.OnLayoutChangeListener
的组合, windowSoftInputMode="adjustResize"
出于不相关的原因而使EditText
成为父项。 (Removing the EditText
caused the copy/paste actions to disappear, sensibly enough.) Hard to track down. (删除EditText
会使复制/粘贴操作消失,足够明显。)很难跟踪。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.