Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8264] iOS: toolbar - requesting barImage

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 1.8.2
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterJon Alter
AssigneeUnknown
Created2012-03-23T21:44:59.000+0000
Updated2018-03-06T18:57:54.000+0000

Description

Requesting the ability to set the barImage on a toolbar. You can set barColor on a toolbar, but barImage is not exposed.

Steps to reproduce:

Step 1: add the attached image to your project Step 2: run the code below Step 3: notice that barImage is set on both the window and the toolbar but it only shows on the window's navbar Step 4: uncomment barColor and notice that is affects that toolbar as you would expect
var win = Ti.UI.createWindow({
    backgroundColor:'white',
    modal: true,
    barImage: 'toolbar_background_blue.png'
});
win.open();

var send = Titanium.UI.createButton({
    title: 'Send',
    style: Titanium.UI.iPhone.SystemButtonStyle.DONE,
});

var camera = Titanium.UI.createButton({
    systemButton: Titanium.UI.iPhone.SystemButton.CAMERA,
});

var cancel = Titanium.UI.createButton({
    systemButton: Titanium.UI.iPhone.SystemButton.CANCEL
});

flexSpace = Titanium.UI.createButton({
    systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});

var toolbar = Titanium.UI.iOS.createToolbar({
    items:[send, flexSpace, camera, flexSpace, cancel],
    bottom:0,
    borderTop:true,
    borderBottom:false,
    barImage: 'toolbar_background_blue.png'
//    barColor: 'black',
});
win.add(toolbar);

Attachments

FileDateSize
toolbar_background_blue.png2012-03-23T21:44:59.000+00006405

Comments

No comments

JSON Source