MDPI图片太小了10 QUOT; Android平板电脑平板、电脑、图片、太小了

2023-09-05 06:13:25 作者:谁的年少不轻狂

我可绘制每个密度LDPI,MDPI,华电国际和xhdpi。

I have drawables for each density as ldpi,mdpi,hdpi and xhdpi.

问题: 两个10的平板设备(1280×800)和手机设备小320x480使用中密度。我有一个35x35 MDPI形象。但这个形象是太小,平板电脑,而它是确定的手机。

Problem: Both 10" tablet device (1280x800) and a handset device 320x480 uses medium density. I have an 35x35 mdpi image. But this image is too small for tablet whereas it is ok for handset.

我看了相关的文件。但我想我无法理解事物显著。反正平板使用xhdpi图像或不知如何使用更大的图像MDPI平板电脑。

I read relevant documents. But I guess I couldn't understand sth significant. Is there anyway for tablet use xhdpi images or I wonder how to use bigger images for mdpi tablet.

推荐答案

您应该添加第二个标识和/或 XLARGE 您可绘制文件夹。增加绘制-XLARGE-MDPI大小,直到您满意的结果,而绘制-MDPI 将是相同的尺寸之前

You should add a second identifier large and/or xlarge to your drawable folders. Increase the size in drawable-xlarge-mdpi until you are happy with the result while the drawable-mdpi will be the same size as before.

这提高了应用程序的大小,但它会解决您的问题。

This increases the app size, but it will fix your issue.