We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
hi..
You can do that through Javascript. I did the same way and its working quiet fine. Something like this:
JavaScript function: android.highlight.changeSelectionColor = function (colorCode) {
window.TextSelection.jsLog("JS: changeSelectionColor --> "+colorCode); $('#selectionColor').text("::selection {background-color: "+colorCode+";}");
};
in HTML, in head TAG something like this: "<style id="selectionColor"> ::selection{background-color: #98d9f1;} </style>"
Now whenever, you wanna change the color, call the Javascript function through the webview's method:
webview.loadUrl("javascript:android.highlight.changeSelectionColor('#ffff7b')");
See if this works for you.
Sorry, something went wrong.
Thanks
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: