凡多个屏幕进行开发时把可绘制? [英] Where to put drawables when developing for multiple screens?

查看:106
本文介绍了凡多个屏幕进行开发时把可绘制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发多个屏幕,所以我的布局布局,布局大型,布局XLARGE。这些布局的按钮的背景已经被张贴在绘制,华电国际,绘制-xgdpi,绘制-xxhdpi文件夹。

但是,当我运行应用程序,它似乎是布局选择可用的最可绘制最小。 xhdpi没有使用正确大小的图像。为什么是这样?我是否需要创建绘文件夹的单独结构?


解决方案

  //尝试这种方法
                            LDPI MDPI华电国际xhdpi xxhdpi xxxhdpi
发射器和首页36 48 72 96 144 192
选项​​卡,对话框和列表24 32 48 64 96 128
操作栏和状态栏18 24 36 48 72 96
背景320 * 426 320 * 470 480 * 640 720 * 960 * 1080 1920 1080 * 1920

I am developing for multiple screens, so my layouts are in layout, layout-large, layout-xlarge. The button background for these layouts has been posted in drawable-hdpi, drawable-xgdpi, drawable-xxhdpi folders.

But, when I run the application, it seems like the layouts are selecting the most smallest drawables available. xhdpi is not using the correctly sized image. Why is this? Do I need to create a separate structure of drawable folders?

解决方案

// try this way
                            ldpi    mdpi    hdpi    xhdpi   xxhdpi    xxxhdpi
Launcher And Home           36      48      72      96      144       192
Tab,Dialog and List         24      32      48      64      96        128
Action Bar And Status Bar   18      24      36      48      72        96
Background                  320*426 320*470 480*640 720*960 1080*1920 1080*1920

这篇关于凡多个屏幕进行开发时把可绘制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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