Comments (5)
I'm not sure I follow you.
from btandroidwebviewselection.
ok, here's the thing, I'm working on an ebook project, so my webview's width depends on the number of pages I have in each chapter. when I go to the second page in my webview using the following javascript ("javascript:window.HTMLOUT.scrolltopage(window.scrollTo("+ scrollToX + ",0));";)
and I try to do the selection, the start handle and the end handle show on the first page instead, while the popwindow and the selection show on the second page(where their supposed to show); I'm wondering how can I modify the startHandle and endHandle to show on the second page as well. I tried to manipulate their coordinate in drawSelectionHandlesHandler by changing the x of startParams and endParams, but it didn't work they just disappeared instead. I hope you can give me a suggestion that I can work on, thank you
from btandroidwebviewselection.
oh well problem solved I had to increase layerParams.width before manipulating the coordinates that's why it was disappearing,
Anyway thank u, and hope this helps someone.
from btandroidwebviewselection.
I too had a problem in this. draghandler in not visible in second page. I too working on ebook project Can you please say how you highlighted the selectedText after user press button in contextmenu and i need to select more than one selection in a single page that is i dont want to clear the selection after user highlighted.
from btandroidwebviewselection.
I don't have support for multiple selections. The highlighting was adding css. The rangy library supports this. It's something along these lines rangy.createCssClassApplier("highlighted", true); You'll need this module to make it work, http://code.google.com/p/rangy/wiki/CSSClassApplierModule
from btandroidwebviewselection.
Related Issues (20)
- cursor not visible with gingerbread. HOT 6
- getting the html source from the selection HOT 7
- Selection in webview after zoom and get the selected word using js?
- jquery is not working when loading dynamically HOT 3
- Selection doesn't work on Samsung Galaxy S2 (Android 4.1.2) HOT 1
- how can I set the selection color? how can I change the color? HOT 2
- Add support for localization HOT 2
- Select text in complext web pages HOT 1
- License? HOT 1
- Not working as the data loaded from a web address.
- Not Properly working in Android KItkat HOT 3
- Not working on Galaxy S3
- Selection not working on Samsung Galaxy Tab2 HOT 5
- load Data method is not working HOT 2
- Arabic font problam HOT 1
- Selection works Very Slow
- Selection Problem on using loadDataWithBaseURL to load data HOT 2
- I dont know how to use BTAndroidWebView i tried BTWebView bt=new BTWebView(this); HOT 4
- CAB comes up context menu as well in lollipop device HOT 2
- Javascript call from WebView to Android and Vice Versa HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btandroidwebviewselection.