简体   繁体   中英

Copy paste option not appearing for EditText

I have created a Activity which extends 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. Doing multiple taps on the EditText , copy paste option pops up and disappear.

Issue is observed on 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. (Removing the EditText caused the copy/paste actions to disappear, sensibly enough.) Hard to track down.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM