我正在尝试更改桌面上 Flex 4.5 AIR 应用程序的默认图标。
我尝试修改 Main-app.xml
Adobe AIR 应用程序描述 rune 件模板文件:
<icon>
<image16x16>src/assets/app_icons/icon_016.png</image16x16>
<image32x32>src/assets/app_icons/icon_032.png</image32x32>
<image48x48>src/assets/app_icons/icon_048.png</image48x48>
<image128x128>src/assets/app_icons/icon_128.png</image128x128>
</icon>
但是,这似乎不起作用,并且在运行应用程序时我仍然看到默认的 AIR 图标。我想知道我是否把图标的相对路径弄错了?
注意:我也尝试了 assets/app_icons/
路径,但这也不起作用。
最佳答案
我终于找到了这个问题“303 app.xml icon file is Missing in package”的解决方案
- 在src内创建assets文件夹,而不是应用程序文件夹
尝试放入所有版本的图标尺寸
<!-- The icon the system uses for the application. For at least one resolution, specify the path to a PNG file included in the AIR package. Optional. --><icon> <image16x16>assets/icon16.png</image16x16> <image32x32>assets/icon32.png</image32x32> <image48x48>assets/icon48.png</image48x48> <image72x72>assets/icon72.png</image72x72> <image128x128>assets/icon128.png</image128x128></icon>
希望对你有帮助
关于apache-flex - 如何为我的 Flex AIR 应用程序使用自定义图标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8610839/