适用于 Windows Phone 的多设备混合应用程序:如何设置徽标? [英] Multi Device Hybrid App for Windows Phone: How to set the logo?

查看:22
本文介绍了适用于 Windows Phone 的多设备混合应用程序:如何设置徽标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚如何使用 Visual Studio 2013 中的cordova 应用程序(或多设备混合应用程序)的预览来设置应用程序徽标和启动画面.我尝试添加

I am trying to figure out, how to set the app logo as well as the splashscreen using the preview for cordova apps (or Multi-Device Hybrid Apps) in Visual Studio 2013. I tried adding

<platform name="wp8">
  <icon src="img/logo.png" width="99" height="99" />
  <!-- tile image -->
  <icon src="img/logo.png" width="159" height="159" />
</platform>

然而,这不会奏效.这是一个非常新的事物,因此查找有关此主题的信息有点困难.这很容易,使用旧方法.任何帮助表示赞赏.

However this won't do the trick. It's a pretty new thing so finding informations on this topic is kind of hard. It was pretty easy, using the old method. Any help is appreciated.

推荐答案

多设备混合应用程序使用 Cordova CLI 为每个平台构建,默认情况下提供回退,因此您实际上不需要添加引用在您的 HTML 文件中.

Multi-Device Hybrid apps use the Cordova CLI to build for each platform, which provides a fallback by default, so you don't actually need to add a reference in your HTML files.

相反,要设置徽标(我假设您正在谈论显示在应用程序抽屉中的图标),您需要按照分辨率添加(或替换) res/icons/wp8/中的图像,然后的特定于平台的视觉资产"部分中提到的命名指南文档.

Instead, to set a logo (I assume you're talking about the icon that shows up in the app drawer), you need to add(or replace) the image in res/icons/wp8/ by following the resolution and naming guidelines mentioned in "Platform-specific Visual Assets" section of the docs.

这篇关于适用于 Windows Phone 的多设备混合应用程序:如何设置徽标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆