凡多个屏幕进行开发时把可绘制?多个、屏幕

2023-09-07 09:59:24 作者:伪善人

我开发多个屏幕,所以我的布局布局,布局大型,布局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.

中视频连接大中小屏,寻找5G时代的想象力

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