[TIMOB-5193] Android: add support for changing the font properties for the title of a tab
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | In Review |
Resolution | Unresolved |
Affected Version/s | Release 1.7.2, Release 2.0.2 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Jon Alter |
Assignee | Unknown |
Created | 2011-09-01T16:17:58.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
AndroidTab.jpg | 2011-09-01T16:17:58.000+0000 | 19321 |
PR :- https://github.com/appcelerator/titanium_mobile/pull/5176