简体   繁体   English

Android Wear的全屏背景图片大小

[英]Full screen background image size for android wear

What pixel size should I draw images to be set on background for android wear watches? 我应该为Android Wear手表绘制要设置在背景上的图像的像素大小?

My Moto 360 seems to have 240dp in hdpi. 我的Moto 360的hdpi似乎为240dp。 I would like to know about other watches. 我想了解其他手表。

Here is the image I posted in https://plus.google.com/+WaynePiekarski/posts/YXbZMLhEJ2L 这是我在https://plus.google.com/+WaynePiekarski/posts/YXbZMLhEJ2L中发布的图片

This has the resolution, DPI, and densityDpi values for every Android Wear watch as of July 2015. 截至2015年7月,此数据具有每款Android Wear手表的分辨率,DPI和densityDpi值。

Using a 320x320 image for a watch face or activity background will work, but in the future you will need to deal with new screen sizes. 在表盘或活动背景上使用320x320的图像将可以使用,但是将来您将需要处理新的屏幕尺寸。

Note that for notification card backgrounds, the image needs to be actually 640x400 (for parallax) and 400x400 for no parallax. 请注意,对于通知卡背景,图像实际上必须为640x400(对于视差),而对于没有视差则为400x400。 See the documentation for more details on this: https://developer.android.com/training/wearables/notifications/creating.html#AddWearableFeatures 有关更多详细信息,请参见文档: https : //developer.android.com/training/wearables/notifications/creating.html#AddWearableFeatures

2015年7月以来所有Android Wear设备的屏幕详细信息

At the moment using a 320x320 bitmap should cover all the bases for you. 目前,使用320x320位图应该可以为您覆盖所有基础。

Here are details: 详情如下:

  • Asus Zen Watch: 320x320 pixels, density 1.75, 182dpx182dp 华硕Zen Watch:320x320像素,密度1.75、182dpx182dp
  • Gear Live: 320x320 pixels, density 1.75, 182dpx182dp Gear Live:320x320像素,密度1.75,182dpx182dp
  • LG G Watch: 280x280 pixels, density 1.5, 186dpx186dp LG G Watch:280x280像素,密度1.5,186dpx186dp
  • LG G Watch R: 320x320 pixels, density 1.5, 213dpx213dp LG G Watch R:320x320像素,密度1.5,213dpx213dp
  • LG Urbane: 320x320pixels, density 1.5 213dpx213dp LG Urbane:320x320像素,密度1.5 213dpx213dp
  • Moto 360: 320x290 pixels, density 1.33, 240x217dp Moto 360:320x290像素,密度1.33,240x217dp
  • Sony Smartwatch: 320x320 pixels, density 1.75, 182dpx182dp 索尼Smartwatch:320x320像素,密度1.75,182dpx182dp

You might consider optimizing for the LG G Watch and using smaller bitmap, but it doesn't seem like worth the time. 您可能会考虑针对LG G Watch进行优化并使用较小的位图,但这似乎并不值得。

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

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