Titanium Alloy 用の サインを手書きでかけるようにする View Widget です。
Copy the widgets
folder in app/widgets
folder of your project.
<Alloy>
<Window>
<Widget src="jp.co.mountposition.signview" onChange="signChange" />
</Window>
</Alloy>
function signChange(e) {
var imageView = Ti.UI.createImageView({image: e.data});
$.index.add(imageView);
}
Add dependencies of app/config.json
{
"global": {},
"env:development": {},
"env:test": {},
"env:production": {},
"os:ios": {},
"os:android": {},
"dependencies": {
"jp.co.mountposition.signview": "1.0"
}
}
Written by @hamasyou Copyright © 2013 MountPosition Inc. Licensed under the [MIT License][MIT] [MIT]: http://www.opensource.org/licenses/mit-license.php