问题描述
我想为Android Wear通知设置背景图片.图片的大小应该是多少?
目前,方形表盘的分辨率为280x280,而圆形表盘的分辨率为320x320(尽管其中一些会被切除,显然).
但是,Android Wear默认情况下会为较大的图像实现某种视差滚动,因此它可以轻松处理较大的图像,甚至建议您这样做().因此,您真的不必担心图像的大小,除非您试图创建具有特定交互区域的静态全屏图像,以替代自定义UI元素(您可以这样做,我可能会添加,尽管Google建议您在手表的每个屏幕上只有一个互动区域,以使事情简单化.
如果您想通过视差滚动看到多个图像用于背景的良好示例,建议您查看GridViewPager示例项目,该项目可在API级别20的可穿戴子文件夹的SDK示例中找到./p>
I want to set background image for Android Wear notification. What should be the size of the image?
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通知的背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!