I’ve coded my first widget for Appcelerator Titanium’s new MVC framework Alloy. Yeah!
It implements the best practice to cache remote images. My goal was to minimize the changes needed from using a plain ImageView in a view and no controller scripting. Check the before and after below and pull the code from GitHub.
Before:
1 2 3 4 5 |
<Alloy> <Window> <ImageView id="civ" image="http://widgets.fokkezb.nl/cachedImageView/appicon.png" /> </Window> </Alloy> |
After:
1 2 3 4 5 |
<Alloy> <Window> <Widget id="civ" src="nl.fokkezb.cachedImageView" image="http://widgets.fokkezb.nl/cachedImageView/appicon.png" /> </Window> </Alloy> |
- Related Content by Tag
- Alloy
- cachedImageView
- Titanium
- widgets