简体   繁体   English

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

[英]How to insert image in Toolbar in Appcelerator

I'm building an app with appcelerator studio for Android system. 我正在使用适用于Android系统的appcelerator Studio构建一个应用程序。 So I want to display and customize a ToolBar. 因此,我想显示和自定义工具栏。 So this is my index.xml layout: 这是我的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>

I want to display my personal Image in this Toolbar. 我想在此工具栏中显示我的个人图像。 I'm try to use tag icon but not works. 我尝试使用标签图标,但不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM