Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5193] Android: add support for changing the font properties for the title of a tab

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusIn Review
ResolutionUnresolved
Affected Version/sRelease 1.7.2, Release 2.0.2
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterJon Alter
AssigneeUnknown
Created2011-09-01T16:17:58.000+0000
Updated2018-03-06T18:57:58.000+0000

Description

Add support for changing the font properties for the title of a tab. See attached screenshot

Example

Step 1: run the code below Step 2: the title of the tab should change when you change the font properties of the tab
var tabGroup = Titanium.UI.createTabGroup({
});

var mainWin = Titanium.UI.createWindow({
	title : 'Tab 1',
	backgroundColor : '#fff'
});
var tab1 = Titanium.UI.createTab({
	icon : 'KS_nav_views.png',
	title : 'Tab 1',
	// Setting the size of the text of the tab here
	font : {
		fontSize : 20,
		fontFamily : 'Helvetica Neue'
	},
	window : mainWin
});

var label1 = Titanium.UI.createLabel({
	color : '#999',
	text : 'I am Window 1',
	font : {
		fontSize : 20,
		fontFamily : 'Helvetica Neue'
	},
	textAlign : 'center',
	width : 'auto'
});

mainWin.add(label1);

tabGroup.addTab(tab1);
tabGroup.open();

Attachments

FileDateSize
AndroidTab.jpg2011-09-01T16:17:58.000+000019321

Comments

  1. Biju pm 2013-12-31

    PR :- https://github.com/appcelerator/titanium_mobile/pull/5176

JSON Source