Good day everyone.
I am trying to build a document viewer with a highlight features which consist of:
1) Enable the selection on a label and trigger an event and detect what is being selected
2) Display a popup with the possible highlight colors available. It would be awesome to overrides the native action bubbles which originally offer you to copy, etc
3) Modify that selection and change it's style: add a backgroundColor and bind a click event on it so I can display a popup with edit/delete action
4) Save it somewhere after...
For the point 1, I couldn't manage to activate the text selection possible on a UI.Label. Maybe there is another UI element I should use? It's working on a UI.TextField but I couldn't make it lockable.
As of point 2, this sounds tricky in a non-native environment. I doubt it's even possible.
About the third point, I have seen around articles about Spannable. I am not sure to understand how it works but I believe this could do what I want. Is that ported in Titanium SDK?
The point 4 do not bother me right now...
Do you guys have any idea if that can be done for iOS/Android with Titanium SDK?
Think you can help? Login to answer this question!