低分辨率 (ldpi) Android 图标

发布于 2024-09-14 18:17:37 字数 835 浏览 0 评论 0原文

关于包含的标准图标主题,Android 文档提到:

下面显示的是标准菜单图标 是在Android系统中使用的。 因为这些资源可能会改变 在平台版本之间,您应该 不引用系统的副本 资源。如果你想使用任何图标 或其他内部可绘制资源, 你应该存储这些的本地副本 应用程序中的图标或绘图 资源,然后引用本地 从您的应用程序代码中复制。在 这样,您就可以保持控制 在你的图标的外观上, 即使系统的副本发生变化。 请注意,下面的列表不是 旨在完成。

在我的应用程序中,我使用诸如“ic_menu_sort_alphabetically”之类的标准图标,因此我尝试找到这些图标,以便我可以将它们包含在我的应用程序中。

但是,在“android-sdk/platforms/android-8/android.jar”中,我只找到了drawable-mdpi和drawable-hdpi中的图标 - 既没有带有图标的默认drawable文件夹,也没有带有图标的drawable-ldpi文件夹这些图标的低分辨率版本。然而,需要这样的低分辨率版本才能在 ldpi 设备(例如 HTC Wildfire)上提供本机版本。

是否有以 ldpi 缩放的 Android 图标的“官方”版本?虽然 ldpi 版本可能存储在我的 HTC Wildfire 设备上的某个位置,但我认为它们的版权归 HTC 所有,并且与 Android 发行版中的图标没有相同的开源许可证。

On the topic of included standard icons the Android documentation mentions that:

Shown below are standard menu icons
that are used in the Android system.
Because these resources can change
between platform versions, you should
not reference the system's copy of the
resources. If you want use any icons
or other internal drawable resources,
you should store a local copy of those
icons or drawables in your application
resources, then reference the local
copy from your application code. In
that way, you can maintain control
over the appearance of your icons,
even if the system's copy changes.
Note that the list below is not
intended to be complete.

In my application I'm using such standard icons such as "ic_menu_sort_alphabetically" and thus I've tried to find these icons, so that I can include them in my application.

However, in "android-sdk/platforms/android-8/android.jar" I only find the icons in drawable-mdpi and in drawable-hdpi - there is neither a default drawable folder with icons, nor a drawable-ldpi folder with low-resolution versions of these icons. However, such a low-resolution version would be required to provide native versions on ldpi devices such as the HTC Wildfire.

Are there any "official" versions of the Android icons scaled at ldpi? While it's likely that the ldpi versions are stored somewhere on my HTC Wildfire device, I assume that they are copyrighted by HTC and not under the same open-source license as the icons in the Android distribution.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忆梦 2024-09-21 18:17:37

如果找不到预先缩放的图像,您可以在 Photoshop 或 GIMP 中打开 mdpi 并将其大小调整 75% 以制作 ldpi 图标。要使 hdpi 将 mdpi 图像大小调整 150%。

If you can't find the pre-scaled images, you can just open the mdpi in Photoshop or GIMP and resize them by 75% to make the ldpi icons. To make hdpi resize the mdpi image by 150%.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文