I am using this android:textIsSelectable="true"
in my TextView for select + copy-paste options and it's working just fine. But I just run into a problem, The selection part appear to be transparent in color. attaching the screenshot for understanding
Now I want to change the color of the selected portion . Is there a way to change the selected portion color.Any help is greatly appreciated.
Edit
Ok ,I seems to have find the issue.The issue was because I was not calling super on onDraw()
instead I was drawing the text ie canvas.drawText()
I made a small workaround for it, which is not perfect.Does anyone know how to set the highlight path using canvas.drawText()
?