简体   繁体   English

Android:图像像素问题

[英]Android: Image Pixel Question

I have a simple question here regarding image. 我在这里有一个关于图像的简单问题。

I have this image 300x240pixel on my laptop screen, however when i put it into the android phone, it becomes smaller. 我在笔记本电脑屏幕上有300x240pixel的图像,但是当我将其放入android手机时,它会变小。 why is this so? 为什么会这样呢?

I did some research before posting here, apparently this got to do with dpi? 在发布之前,我做了一些研究,这显然与dpi有关? Is it possible to to have the same 300x240 size on my laptop screen to be displayed on the android phone without being pixelated? 是否可以在笔记本电脑屏幕上使用相同的300x240尺寸,以在Android手机上显示而不被像素化?

Thank You 谢谢

Yes, but you will need to use the different dpi sections in res/drawable folders. 是的,但是您需要在res / drawable文件夹中使用不同的dpi部分。 Reference: http://developer.android.com/guide/practices/screens_support.html 参考: http : //developer.android.com/guide/practices/screens_support.html

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

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