Is it possible to allow the user to select and then copy text in the clipboard in a TextView?
I found this but there isn't an answer.
I have also tried to set android:textIsSelectable="true"
but it didn't work.
Is it possible to allow the user to select and then copy text in the clipboard in a TextView?
I found this but there isn't an answer.
I have also tried to set android:textIsSelectable="true"
but it didn't work.
I fixed it by using an EditText but to avoid the problems I described in my answer to "imran khan" I found a comment about setKeyListener in the android code:
So the problem is that when you set the flag editable to false setKeyListener is called and the focusable flag is overwritten.
To fix it, in the onCreate of my activity I added:
By doing this I also got rid of the marks for the wrongly spelled words
I think that starting with Lollipop, this actually works as you'd expect it (tested on my app, after I've changed a few things) :
I used this library, and changed this attribute for the file "adp_alert_dialog_material.xml", to just have the attribute you've asked about (on a TextView) :