Android Copy and Paste with TextView

偶尔善良 提交于 2019-12-06 01:44:20

问题


I have a textview which displays a lot of text.

My users want to highlight and copy a snip of code to the clipboard.

Any pointers on how to do that?


回答1:


Have you tried Copy Paste - Android Developers Site?




回答2:


Modify the textIsSelectable property:

android:textIsSelectable="true" 


来源:https://stackoverflow.com/questions/3605155/android-copy-and-paste-with-textview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!