javascript - Titanium scrollView does not react -


I try to apply an image in titanium that can be rotated and extended. I managed to get it working properly, but I want to be able to scroll the image if the image is larger than the view I include tried many things, including Iventlistnrs and bring the proper use of Jindeks Had been done, but nothing does help. I used to experiment with the bubblepint function without any other results. I hope some of you have got an idea of ​​how to get the desired behavior.

XML:

  & lt; ScrollView id = "imageScrollView" & gt; & Lt; View ID = "Picture View" & gt; & Lt; Image View ID = "Picture" & gt; & Lt; / ImageView & gt; & Lt; / View & gt; & Lt; / Scrollview & gt; "Top": "0", left: "0", height: "120", width:   

TSS:

  "# imageScrollView" "47%", showHorizontalScrollIndicator: "true", showVerticalScrollIndicator: "true", maxZoomScale: "5", minZoomScale: "1", the background color: "white", scrollingEnabled: "true", BorderWidth: "1", zindex: "1050"} "#pictureView": {top: the "0", except: "0" height: "100%", width: "100%", BubbleParent: true} "#picture": {top: " 0 ", left:" 0 "height:" 100% ", width:" 100% ", BorderWidth:" 3 ", BorderColor:" red ", BubbleParent: true}   

and my js

  $ imageScrollView.addEventListener ( "scroll", function (e) {Ti.API.info ( "trigger event");}). $ .PictureView.addEventListener ("scroll", function (e) {Ti.API.info ("Triggered Event");});    

I finally I finally managed to work using this module :. If you have any problems importing / using it, please refer to it.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -