Android Wear通知的背景图片 [英] Background image for android wear notification

查看:81
本文介绍了Android Wear通知的背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为Android Wear通知设置背景图片.图片的大小应该是多少?

解决方案

目前,方形表盘的分辨率为280x280,而圆形表盘的分辨率为320x320(尽管其中一些会被切除,显然).

但是,Android Wear默认情况下会为较大的图像实现某种视差滚动,因此它可以轻松处理较大的图像,甚至建议您这样做( 解决方案

The resolution for square watch faces as of right now is 280x280, whereas the circular watch face has a resolution of 320x320 (although some of this will be cut off, obviously).

However, Android Wear implements a sort of parallax scrolling by default for larger images, so it can handle larger images with great ease, and it is even recommended that you do so (see this previous answer). So you really shouldn't worry about the size of the image, unless you were trying to create a static, full-screen image with specific areas of interaction as a substitute for custom UI elements (which you can do, I might add, although Google recommends you have only one area of interaction per screen on the watch to keep things simple).

If you want to see a good example of multiple images being used for backgrounds with parallax scrolling, I recommend you check out the GridViewPager sample project, which can be found in the SDK samples in the wearable subfolder for API level 20.

这篇关于Android Wear通知的背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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