i am showing one popup window and in that there is one edit text when i long press on that edit text by default copy-paste option doesn't appear stuck with this issue is there any solution instead of creating custom coding for that copy and paste functionality.
Asked
Active
Viewed 1,733 times
0
-
have you got solution for this, because I am also facing same. – Komal Nikhare May 01 '20 at 09:01
1 Answers
-1
you should add this code in EditText;
android:textIsSelectable="true"

Berat Eyüboğlu
- 1,663
- 3
- 18
- 32
-
but my edittext is inside the popup window so is it working ? – Shailendrasinh Gohil Apr 20 '17 at 12:43
-
-
-
its not working when i click on edit text keyboard also stop to popup after add textIsSelectedable – Shailendrasinh Gohil Apr 20 '17 at 12:47
-
-
not working :( keyboard also not poped up when click on edittext – Shailendrasinh Gohil Apr 20 '17 at 12:50
-
delete textisselecteadable option; and add this funciton: android:longClickable="false" – Berat Eyüboğlu Apr 20 '17 at 12:53
-
ya now key board and curson both showing but as per my requirement on long press copy and paste option not showing :( – Shailendrasinh Gohil Apr 20 '17 at 12:57
-
Okay, you can add this line on java code. isSuggestionsEnabled and canPaste option in EditText. – Berat Eyüboğlu Apr 20 '17 at 13:00
-
i have add this but still not getting that option ......its should be work on edit text which is in activity xml file but in my case my edit text is in already popup window and we are trying to show one more popup of paste and copy option on it so is it possible ... – Shailendrasinh Gohil Apr 20 '17 at 13:10