Android Question System copy-paste from label to editext

leongcc

Member
Licensed User
Longtime User
When we long-press on an edittext, the system options appears for us to select cut/copy/paste etc.
Is it possible to have this system options appear when we long-press on a label ?

I would like to copy some text from a label to an edittext for editing.
I can do it on application level but would like the system to take care of cut/copy/paste for both labels and edittexts.
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

leongcc

Member
Licensed User
Longtime User
No. Labels are not editable

No, not editing label, just want to copy and paste a portion of the label.text to an edittext.
Just like copying some text from webpage (not editable) or SMS (not editable) and pasting onto my word-processor.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
No, not editing label, just want to copy and paste a portion of the label.text to an edittext.
The LAbel is NOT EDITABLE! So you cant copy the text or a part of it!
The Systems Copy and Paste methods only works on Editable Objects...

At least as i am aware of.
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
But a label does have a click event which you could use to capture all the text, place it in the edittext and then edit it.
 
Upvote 0

leongcc

Member
Licensed User
Longtime User
If you have time please try this:
Open Chrome and view any webpage with text.
Long-press on the text and the System's Text Selection menu appear.
Long-press on emails will also trigger the System's Text Selection.

I am very sure it is a System feature and not an app feature.
The text at the webpage and emails are NOT edittexts, any idea how this work ?
 
Upvote 0

leongcc

Member
Licensed User
Longtime User
But a label does have a click event which you could use to capture all the text, place it in the edittext and then edit it.

Yes, this is an application-level implementation using BClipboard.
I have been wondering how to use the System Text Selection.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
The text at the webpage and emails are NOT edittexts, any idea how this work ?
a webview behaves much different than a LABEL.

Use ANY app (even google apps).
search a label in the app and try to copy the text in the way you described. It will NOT work
 
Upvote 0
Top