Titanium & Studio 3.2.3 highlights

The beta of Titanium & Titanium Studio 3.2.3 is now available. It’s a minor update, but still fixes 132 issues and even adds some small new features.

Here is my top 3:

Android Action Bar now supports subtitle (#TIMOB-15580)

You can now set the subtitle for the Action Bar like this:

var win = Ti.UI.createWindow(); 
 
win.addEventListener("open", function(e) {
  if (win.activity && win.activity.actionBar) {
    win.activity.actionBar.title = "New Title";
    win.activity.actionBar.subtitle = "New sub Title";
  }
});
 
win.open();

Android borderRadius now uses default unit (#TIMOB-15099, #TIMOB-16564)

The borderRadius property only accepted Number and did not apply the ti.ui.defaultunit, which is best set to dp. This meant on Android you had to convert the value to PX yourself. Both is now fixed, but be aware that this means that you now have to remove workarounds like shown here:

var view = Ti.UI.createView({
  width: 300,

  // This workaround MUST now be removed
  borderRadius: (Ti.Platform.osname === "android") ? Ti.UI.convertUnits(150,'px') : 150
});

Studio creates linked folders as symlinks #TISTUD-4930)

Virtual folders are a nice way to use components between different projects, but unfortunately they are a Studio-only feature and the Alloy compiler fails to find widgets if you use this feature. The beta now lets you create actual symbolic links. Nice for proprietary widgets, because for public ones you use gitTio – of course.

Linked folders

App imagineer: Imagining, Engineering & Speaking about Native mobile Apps with Appcelerator Titanium & Alloy • Meetup organizer • Certified Expert • Titan