我有
PSD
,分辨率为
1080X1920
,其中包含一个
Dot
分辨率为
22X22
的图像
我裁剪了该图像并将其放在我的
res
中
文件夹。
我的问题是Android如何知道该图像适用于
1080X1920
屏幕.它将在
small
中打开较大的同一图像
屏幕和在
2560x1440
中较小
分辨率。
Is there a way other than putting different images for each screen sizes to tell android to use the image for specific screen size and scale for other
screens
最新回答
- 2021-1-121 #
- 2021-1-122 #
Android Studio在您的Android Studio中安装了一个名为"批处理可绘制"的插件.这有助于创建不同大小的图像。
导入步骤: 文件->设置->插件->浏览存储库->单击安装按钮。
重新启动Android Studio,然后您将可以在Android Studio的文件菜单中找到"批处理可绘制"。
链接:https://github.com/winterDroid/android-drawable-importer-intellij-plugin
- 2021-1-123 #
将大型图像放入可绘制文件夹.
- 2021-1-124 #
您无需做其他任何事情,只需将不同分辨率的文件放入不同的drawable-xxx文件即可.请记住,所有图片都必须具有相同的名称,但是Android不会自动匹配每个图片的屏幕尺寸,因为文件名不匹配.祝你好运!
直接使用https://romannurik.github.io/AndroidAssetStudio/
您必须创建不同的dimen,layout,图像和图标文件以支持所有设备。
changes in screen density.
Make this layout files, so that it will be same for all devices
根据设备提供填充,边距,字体和所有属性。
For Layout ,
For Images
For Icon
For Launcher icon
结帐尺寸和 支持多屏官方文档。