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

允我心安 提交于 2019-12-02 08:42:45

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.

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>

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!