O'Reilly logo

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition by Jason Kneen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding an Alloy widget to your application

So far, we've looked at some great features of Alloy—XML-based views, styles, and writing less JavaScript code. Another great feature of Alloy is the ability to use Widgets—these are small, packaged components that can be added to any Alloy application, allowing you to reuse them across applications. They have a simple view, controller, and styling structure, just like an Alloy project, and can easily be customized to fit your needs.

You've already seen how to perform navigation-based on TabGroup with Appcelerator, but one of the limitations of a TabGroup on iOS is that you can't change the font used for the tabs. So let's change this using a widget that allows us to specify a font face and size to use. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required