2

I want to enable cut, copy and paste features on textviews in my app. I have scene the below link also to implement it but it also do not work.

Copy with clipboard manager that supports old and new android versions?

Please provide me a solution which can work.

Thanks a lot in advanced.

Community
  • 1
  • 1
Prithniraj Nicyone
  • 5,021
  • 13
  • 52
  • 78
  • The text is get copying but the clipboard bar is not displayed when I LongClick on Textview. I want to display that also. – Prithniraj Nicyone Jan 06 '16 at 09:53
  • 1
    Possible duplicate of [How do I enable standard copy paste for a TextView in Android?](http://stackoverflow.com/questions/10386084/how-do-i-enable-standard-copy-paste-for-a-textview-in-android) – Zahan Safallwa Jan 06 '16 at 10:11

1 Answers1

2

In your xml layout add

android:textIsSelectable="true"

Or In java

myTextView.setTextIsSelectable(true);
johnrao07
  • 6,690
  • 4
  • 32
  • 55