简体   繁体   English

使用Galaxy Tab 10.1的Android应用中的图像质量下降

[英]Image deterioration in android app, using Galaxy Tab 10.1

I tested my app on Galaxy tab 10.1 and found something strange. 我在“ Galaxy”选项卡10.1上测试了我的应用程序,发现了一些奇怪的地方。

I use a large image as title of app created for large screen. 我使用大图像作为为大屏幕创建的应用程序的标题。 But when checked it, image quality is lowered. 但是,如果选中它,图像质量会降低。

I never touched image like resizing. 我从未像调整大小一样触及图像。 Image resolution is fit so there is nothing to change. 图像分辨率合适,因此无需更改。

When viewing same image on gallary, it seems almost same. 在图库上查看相同图像时,似乎几乎相同。 Only in app, image is deteriorated. 仅在应用程序中,图像质量下降。

I using image folder drawble-xhdpi and layout folder layout-xlarge. 我使用图像文件夹drawble-xhdpi和布局文件夹layout-xlarge。 Is there something more i should check? 还有什么我应该检查的吗?

You should check what density the device you're testing on actually is. 您应该检查要测试的设备的实际密度。 The Galaxy Tab 10.1 is an mdpi device, not an xhdpi device. Galaxy Tab 10.1是mdpi设备,而不是xhdpi设备。 Also, it's recommended not to use the large and xlarge qualifiers, and instead to use the smallest-width qualifiers (eg sw600dp for 7", sw720dp for 10"). 另外,建议不要使用largexlarge限定符,而应使用最小宽度的限定符(例如, sw600dp为7“, sw720dp为10”)。

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

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