Posted by Shane O'Sullivan on June 22, 2010
I’ve been working a lot on Dojo’s new mobile framework (see HERE for my intro post on dojox.mobile.app) and the Image widgets are coming along very nicely. I just checked in a new Thumbnail viewer, and enhanced the ImageView widget. Check them both out at http://bit.ly/cU3akI.
Click the “Browse Flickr” selection to see both images integrated with Flickr, as well as a dynamic group search view using the TextInput and List widgets. Given that these widgets use cool fancy HTML5 effects, you’re best off viewing them in a WebKit browser, so Safari, Chrome, webOS, iPhoneOS (iOS now I guess) will give you the best experience.
The ImageThumbView uses CSS3 transforms to position the thumbnail images, and animates the opacity with CSS3 to fade in/out images.
Posted by Shane O'Sullivan on June 13, 2010
Dojo v1.5, which should be released in the coming weeks, will contain an early beta of a new infrastructure for building Mobile Apps. Currently it is called dojox.mobile.app, but that is expected to change. Check out the test apps (the bottom section) at http://www.skynet.ie/~sos/misc/dojoxMobile/tests/dojox/mobile/tests , which work best in WebKit, so use Safari or Chrome for best results.
Jared Jurkiewicz and Yoshiroh Kamiyama recently added the dojox.mobile project. It provides some very nice widgets for use on mobile phones, such as views that can transition between each other, rounded lists, tab containers etc.
Hence, dojox.mobile.app is born.
It is built on top of dojox.mobile, but adds many new features, with more on the way.
- Templated views that can be pushed and popped off the stack of views, all of which are lazily loaded.
- Templated lists
- Input widgets
- Image Gallery
- Dialog Boxes
- Popup Menus
are all available now. The structure of a dojox.mobile.app application is modeled very closely to a webOS app. The templates and code are in a similar folder structure, and the lifecycle for creating and destroying (popping) scenes/views are very similar.
The goal of dojox.mobile.app is NOT to replace or duplicate the functionality in PhoneGap. PhoneGap provides low level access to many phone features. dojox.mobile.app aims to provide an easy to use, flexible application structure, and many widgets that you will find useful, all themed to appear native to each platform. In a real world app, it would make most sense to use both PhoneGap and dojox.mobile.app.
One of the cooler widgets currently available is the ImageView widget, check it out at http://www.skynet.ie/~sos/misc/dojoxMobile/tests/dojox/mobile/tests/imageControlsApp . Some of its features include
- Canvas based
- Touch capable
- Swipe across to change images
- Tap to zoom in, and then swipe to move around an image
- Progressive loading of images – first load a small version of an image, and later a larger version
dojox.mobile.app is currently tested mostly on the iPhone, but will soon support webOS and Android also. The mobile world is an exciting place to be right now, and Dojo is jumping in feet first