I'm using Titanium version 3.1.3 and alloy framework. I implemented the action bar in my app; but in the screen with tab groups in it, the title is missing from action bar. Only the icon is getting displayed in it. From this - jira item, I can see that, this is fixed in SDK version: 3.1.0.v20130320190115. But still, I'm not able to figure out why.
I tried setting the title of action bar through code like this
var actionBar; if (Ti.Platform.osname === "android") { if (! $.tab.activity) { Ti.API.error("Can't access action bar on a lightweight window."); } else { actionBar = $.tab.getActivity().actionBar; if (actionBar) { alert("true"); //actionBar.title = "TITLE"; actionBar.setTitle("TITLE"); } } }The alert is coming; but the title is not getting set. Please help.