Hi all,
I hava a WebView to load a string contains javascript & html content
with "bookWebView.loadDataWithBaseURL" method.
For example,
<html>
<head>
<script type="text/javascript">
function test() {
var bc = document.getElementById('test').style;
bc.width = '640px !important';
bc.height = '200px !important';
bc.marginTop = '5px !important';
bc.webkitColumnWidth = '100px !important';
bc.webkitColumnGap = '5px !important';
}
</script>
</head>
<body>
<div id="test">
...................
</div>
</body>
</html>
I found that if javascript function "test()" is not called, I can use
"emulateShiftHeld" + move finger and see green highlight(on Hero) or
pink highlight(on Nexus) to copy text.
But after javascript function "test()" is called, I try
"emulateShiftHeld" + move finger again, there comes two situation:
1. Highlight color still can appear, but it does not wrap text in the
webview.
(i.e., just like the highlight "shift" upside by half of line-
height)
2. Highlight color not appear.
Anyone has comment?
Thanks a lot!
Jet
--
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