简体   繁体   English

Android通知BigPictureStyle图片在小型设备上从侧面裁剪

[英]Android Notification BigPictureStyle picture getting cropped from sides on small devices

I have created a notification with Big Picture Style. 我已使用“大图片风格”创建了一个通知。 I have sizes for mdpi, hdpi, xhdpi, xxhdpi and xxxhdpi. 我有mdpi,hdpi,xhdpi,xxhdpi和xxxhdpi的尺寸。 On tablets the picture looks great, but on phone (Moto X), the picture is getting cropped from the left and right side. 在平板电脑上,图片看起来不错,但是在手机(Moto X)上,图片从左侧和右侧被裁剪。

What should be done so that the full picture is seen ?? 应该做些什么才能看到全图?

Here's a document from google I think might be helpful: What's new in Android 这是我认为对Google有帮助的文档: Android的新功能

On page 52, it said 在第52页上,它说

Images should be ≤ 450dp wide, ~2:1 aspect 图像宽度应≤450dp,长宽比应为2:1

By the way, the height of notification big picture should be no bigger than 256dp. 顺便说一下,通知大图片的高度应不大于256dp。

Hope this will help you. 希望这会帮助你。

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

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