They are non-editable by default. One can make them editable, but it
seems pointless: one should use EditText instead. But if someone else
wrote the TextView, the OP should check for android:editable in the
XML file and for calls to setEditable() or setImeOptions().

On Mar 17, 5:00 am, Mark Murphy <[email protected]> wrote:
> On Thu, Mar 17, 2011 at 2:54 AM, perumal316 <[email protected]> wrote:
> > Is it possible to use the KeyEvent API for copy/paste functionality?
>
> You don't need to.
>
> > It is possible to insert keystrokes into a TextView using KeyEvent.
>
> TextViews are non-editable.
>
> > How do I copy the string from a TextView using KeyEvent?
>
> You don't.
>
> > Is there any other way?
>
> Call getText() on the TextView.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to