由于多种密度和屏幕尺寸而导致 APK 过大? [英] Too large APK due to multiple densities and screens sizes?

查看:27
本文介绍了由于多种密度和屏幕尺寸而导致 APK 过大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google 建议为每个图像创建 4 个不同的版本 - 每个密度(ldpi、mdpi、hdpi、xhdpi)一个.有时您甚至可能想根据屏幕尺寸(小、正常、大、超大)创建其他内容.

Google suggests to create for each image 4 different versions - one for each density (ldpi, mdpi, hdpi, xhdpi). Sometimes you might even want to create others, based on the screen size (small, normal, large, xlarge).

这会导致一个奇怪的情况,即应用程序永远不会使用应用程序的大部分图像,对吗?

This causes a weird situation where most of the app's images will never be used by the app, right?

Google 为什么不在他们的网站上创建多个 APK,将最佳 APK 定位到最终用户的设备,以便 100% 的资源将针对设备的规格?或者已经有这种东西了?

How come Google doesn't create multiple APKs on their website, to target the best APK to the end user's device, so that 100% of the resources will be targeted on the device's specs? Or there is already such a thing?

推荐答案

是的,支持多个 APK.请参阅此处.

Yes there is a support for multiple APK. Please refer here.

为了准确地满足您的需求,您可以在清单文件中使用某些过滤器,即 或 <compatible-screens>

To address your need precisly you can certain filters in your manifest file i.e. <supports-screens> or <compatible-screens>

这篇关于由于多种密度和屏幕尺寸而导致 APK 过大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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