Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Set Title in ActionBar - Screen with Tabgroups

$
0
0

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.

Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>