自定义sencha触摸工具栏

Nil*_*hal 2 sencha-touch sencha-touch-theming sencha-touch-2

我想使用sencha touch创建自定义工具栏.使用Ext.Toolbar,我可以创建一个像样的屏幕标题栏.但我的要求是将我公司的品牌形象标识放在标题栏的中心,而不是下面代码提供的简单文本.

{
   xtype : 'toolbar',
   docked: 'top',
   title: 'My Toolbar'
}
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮我怎么做?

ble*_*enm 8

试试这个

{
    xtype: 'toolbar',
    docked: 'top',
    layout: {
        type: 'vbox',
        align: 'center',
        pack: 'center'
    },
    items: [
        {
            xtype: 'image',
            width:218,
            height:44,
            src:'http://cdn.sstatic.net/careers/gethired/img/careers2-ad-header-so-crop.png'
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)