Is a TiTouchImageView working in an alloy project? [UPDATE]

前端 未结 3 832
醉梦人生
醉梦人生 2021-01-26 07:00

I am currently developing a titanium app for android and iOs including an imageView which should be scrollable and scalable (via a slider). I already get this to work on iOs but

相关标签:
3条回答
  • 2021-01-26 07:21

    Thanks for your input Arturo, but this was not the problem. I finally figured out how to use a module in an alloy project by reading the guide. My final code looks like this:

    <Module module="org.iotashan.TiTouchImageView" id="androidPicture"></Module>
    
    0 讨论(0)
  • 2021-01-26 07:34

    i have been using this in my project like.

    In xml

      <View id="windowView" module="org.iotashan.TiTouchImageView" platform="android" minZoom="0.1" maxZoom="9.5"></View>
    

    In tss

    "#windowView":{
    top: 44,
    height: Ti.UI.FILL,
    width: Ti.UI.FILL,
    backgroundColor: "trasparent"
    

    }

    In JS

    $.windowView.image = "image path here"
    

    And its working like a charm.

    0 讨论(0)
  • 2021-01-26 07:39

    Did you add the module reference to tiapp.xml? Any module should work on Alloy, you only need to take care of the SDK version.

    0 讨论(0)
提交回复
热议问题