没有出现的HTC One M8图片 [英] Image not appearing on HTC One M8

查看:178
本文介绍了没有出现的HTC One M8图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发的,我在工作的公司的一个新的应用程序。
我们测试这在多个设备上,现在一个奇怪的事情,我注意到有一天,以及别人没有。

I'm currently developing a new app for the company I'm working at. We test this on multiple devices, now a strange thing I noticed the other day, well someone else did.

我的同事测试了应用程序对他的HTC One M8,我们必须在登录页面上的背景图像,但它并没有表现出他。然而,它确实对Nexus 7和三星Galaxy Tab 4,摩托罗拉G和三星S4。

My Colleague tested the app on his HTC one m8, and we have a background image on the login page but it didn't show for him. It did however on a Nexus 7, Samsung Galaxy Tab 4, Motorola G and Samsung S4.

这可能是很具体,但我猜有些人一定是在某些设备之前注意到这种行为并发现了,为什么这可能发生的可能?

This might be very specific, but I guess some people must have noticed this kind of behaviour before on certain devices and found out why this could possibly occur?

图片保存在定期绘制文件夹的大小为1400px933px,这是一个JPEG。

The image is saved in the regular drawable folder and has a size of 1400px933px and it's a jpeg.

我想知道如果任何人有任何线索。

I wonder if anyone has any clue.

该ImageView的是一个相对布局的第一个孩子,在宽度和高度尺寸匹配父。因此,它应该刚好合身,其他意见是在这一个顶部。

The ImageView is the first child of a relative layout, with a size of match parent in both width and Height. So it should just fit, other views are on top of this one.

推荐答案

我相信这个问题也与机器人如何尺度图像做。尝试把图像划分成绘制-nodpi 资源文件夹。

I believe this problem is also to do with how android scales the images. Try putting the image into a drawable-nodpi resource folder.

绘制文件夹相同绘制-MDPI 。合格的为 MDPI 的的HTC One M8的图像由3倍。所以,你的 1400x933px 图像变成被放大 4200x2799px 。通过OpenGL的允许的最大尺寸为 4096×4096

The drawable folder is the same as drawable-mdpi. On the HTC One M8 images qualified as mdpi are scaled up by a factor of 3. So your 1400x933px image becomes 4200x2799px. The maximum size allowed by OpenGL is 4096x4096.

这篇关于没有出现的HTC One M8图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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