开发者

iPhone : How to change titlebar text/font colour in Appcelerator Titanium

开发者 https://www.devze.com 2023-01-23 01:26 出处:网络
I\'m currently building an app in Appcelerator Titanium 1.2.1. I\'ve been able to set the apps\' titlebar/navbar colour using the following:

I'm currently building an app in Appcelerator Titanium 1.2.1.

I've been able to set the apps' titlebar/navbar colour using the following:

var tabGroup = Titanium.UI.createTabGroup(开发者_运维百科
{
    barColor:'#fff'
});

Problem is, with a white titlebar, the text becomes hard to read. Is it possible to change the text colour from white to another colour? (say 'black' for contrast)?


posted solution below, basically create a label and set the window title with the control

http://blog.clearlyinnovative.com/post/1484840648/titanium-appcelerator-quickie-change-text-style-in

0

精彩评论

暂无评论...
验证码 换一张
取 消