Android 中部分设备支持多屏显示 [英] Supporting Multiple Screens for some devices in Android

查看:47
本文介绍了Android 中部分设备支持多屏显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了关于支持多屏的官方文档http://developer.android.com/guide/practices/screens_support.html

I read the official document about supporting multiple screens http://developer.android.com/guide/practices/screens_support.html

根据那个文件,我应该为不同的分辨率创建不同的目录.

According to that document, I should just create different directories for different resolultion.

现在是问题.如何支持普通屏幕和高密度或低密度的设备?

Now the question. How to support devices with normal screen and high density or low density?

我问它是因为有两种可能性(WVGA800(480x800)和WVGA854(480x854))和(WQVGA400(240x400)和WQVGA432(240x432)),我不知道在哪里为它们存储一些背景图像.

I ask it because, there are two posibilities (WVGA800 (480x800) and WVGA854 (480x854)) and (WQVGA400 (240x400) and WQVGA432 (240x432)) and I don't know where to store some background images for them.

我会使用 drawable-normal-hdpi 或 drawable-normal-ldpi,但是如何在 480x800 和 480x854 或 240x400 和 240x432 之间做出区别?!

I would take drawable-normal-hdpi or drawable-normal-ldpi, but how to make difference between 480x800 and 480x854 or between 240x400 and 240x432?!

先谢谢你,

推荐答案

这是关于如何指定替代资源的文档.

所以你可以为具有高 dpi 的中等屏幕做 drawable-normal-hdpi.

So you could do drawable-normal-hdpi for medium screens with high dpi.

这篇关于Android 中部分设备支持多屏显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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