如何在Appcelerator中的工具栏中插入图像

时间:2016-11-03 11:51:50

标签: android appcelerator appcelerator-titanium appcelerator-alloy

我正在使用appcelerator studio为Android系统构建应用程序。 所以我想显示和自定义ToolBar。 所以这是我的index.xml布局:

<Alloy>
    <Window class="container">
        <ActionBar id="actionbar" title="" icon="/images/logo_decipher.png"  />
        <Menu>
            <MenuItem id="item1" title="Settings"  />
            <MenuItem id="item2" title="Search" />
        </Menu>
    </Window>
</Alloy>

我想在此工具栏中显示我的个人图片。我尝试使用标签图标但不起作用。

1 个答案:

答案 0 :(得分:0)