如何在Appcelerator Studio中创建测速表?只使用view.xml、view.tss和view.js?因为我没有使用像d3.js这样的其他库。
发布于 2016-07-29 22:52:04
“速度表”有点模糊,但取决于你寻找的解决方案有多复杂,使用像D3这样的东西可能是最好的,也是最快的解决方案。
发布于 2016-07-30 01:54:47
我找到了一种解决方案,我使用图像,并设置动态旋转。只需使用2DMatrix即可
示例:.js
var rotateFirst = Titanium.UI.create2DMatrix().rotate(90);
$.imageTest.transform = rotateFirst;- .xml
<View id="test">
<ImageView id="imageTest"/>
</View>- .tss
"#imageTest":{
image:"/images/home/hello.png",
width:"40%",
opacity:1,
left:"7%",
anchorPoint : {
x : 0.5,
y : 0.5
}
}https://stackoverflow.com/questions/38661134
复制相似问题