如何区分android系统的480X800和480X854的屏幕? [英] how to differentiate the 480X800 and 480X854 screens in android?

查看:135
本文介绍了如何区分android系统的480X800和480X854的屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何区分480X800和480X854的屏幕。我们有一个选项,将一个图像在华电国际folder.in我的情况480X800的图像是480X854图像不支持。它显示在bottom.Any理念的空白空间?

how to differentiate the 480X800 and 480X854 screens. we have an option to put the one image at the hdpi folder.in my case 480X800 image is does not support for the 480X854 image. it shows a blank space at the bottom.Any Idea?

编辑:我设置图片作为背景。在我的布局我有利润透明图像的意见。如果我点击图像查看它做一些任务。但是这两个屏幕之间。我可以为一个调整值。在另一个图像稍微strectched。然后我能做些什么呢?你能理解我的问题吗?请帮助。

推荐答案

您可以拉从当前运行的进程的决议,但是你不能拉精确的分辨率。据我所知,他们是没有办法的两个大显示器区分,你可以期望的最好状态,任何大小支持与您的应用程序。

You can pull the resolution from the current running process, but you can't pull the exact resolution. As I know, their is no way to differentiate between the two "large" displays, the best you can hope for is supporting any size with your app.

如果您的显示图像(假设你提供给所有屏幕尺寸的应用程序)只是使图像一样大,更大的分辨率,而不是让其他位显示。如果图像文件很小,你不应该有问题。

If your displaying an image (and assuming you made the Application available to all screen sizes) just make the image as big as the larger resolution and not let the other bit display. If the image file is small you should not have a problem.

顺便说一句,我先解决了这个问题通过使应用程序布局访问所有的屏幕分辨率和自定义为较低的分辨率。

BTW, I solved the problem first by making the Application layout accessible to all screen resolution, and customizing for the lower resolutions.

希望它帮助!

这篇关于如何区分android系统的480X800和480X854的屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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