Before choosing any framework to work with it’s best to first check out documentation and make an assessment. Titanium framework documentation is one of the best if not the best documentation you will ever have the pleasure to work with. This is probably something very much needed for open web standards. Let’s take a quick tour while in search for changing a simple font size for a label.
You can get to docs for Titanium framework by simply going to http://docs.appcelerator.com/titanium/latest/
The third tab has all the best practices making it easy for you to avoid all the common hurdles. Although most of your time will be spent on the gear icon second tab.
Let’s say you are working with Titanium framework and you wanted to change font size of a label. How does this documentation help? On the left side of the page. Scroll down and expand ‘UI' (User Interface):
Then click Label:
This will update right side of the page and load docs for Titanium.UI.Label. Right below the heading are three drop down menus. These drop downs will help you quickly find what you need.
Great way to understand these three menu options (Properties, Methods, and Events). let’s think of a pair of scissors having a ‘property' called handles allowing you to hold the scissors and you can use a method to open and close the scissors. The ‘property' and ‘method' allow you to do an ‘event' such as cut a piece of paper or cloth.
Properties menu will list settings you can change to define your label. For example a property to define a color for your label:
You can get more details about what String (text with quotes) values are accepted by clicking Titanium.UI.
Clicking Titanium.UI link will take you here: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI
You can scroll down to ‘color' and there is an explanation on types of strings(text with quotes) you can use to define color:
Now let’s change font size for a label. We go back to Titanium.UI.Label (http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Label
and scroll down or in search box type font:
This is a little confusing because there is no mention of how to change the font size. Since the explanation is too much to display here you have to click on font link.
Once you click font you will be taken here: http://docs.appcelerator.com/titanium/latest/#!/api/Font
Aha, there it is and documentation even explains common 'gotcha’s' with setting fonts. There is even an explanation about adding custom fonts. How cool is that?
Also look out for these icons giving you heads up on what platforms are supported for a given property.
Hope you enjoyed this quick tour and my intention is not to insult anyones intelligence. There is tons of more fun to be had. You can download titanium framework and sdk. Yes, it will work on your Windows OS.
I’ve created what I call the Basmala test for Titanium Alloy. The famous Basmala is a excellent way to start any project. You can browse through this code (https://github.com/zeshanb/titanium-app-mvc-android-audioplayer
) on Github to help you on your development. It’s a simple audio player app using standard Android native UI elements. If you get stuck regarding this code on Github. Please leave a comment below.
Okay, enough with the tedious skimming through docs.
A basic Audio Player made with Titanium Framework developed using Alloy MVC