gpt4 book ai didi

android - 如何决定用作 android 的 VectorDrawable 的 svg 文件的大小?

转载 作者:行者123 更新时间:2023-11-29 19:44:37 26 4
gpt4 key购买 nike

我之前使用的是 png 而不是 svg,现在我想移动 .当我们使用来自 android asset 的 Material 图标时,默认大小为 24dp,我知道我们可以修改它。现在我想知道图标的 png 大小是否为52x62 高清像素26x31 低密度像素……以 svg 格式保存资源的大小应该是多少?在布局 xml 中,我们将使用 xml 作为 wrap_content 是吗?

最佳答案

对于 VectorDrawables,这并不重要。它们可能具有 24dp 的默认宽度和高度值,但这些值将被最终绘制的任何尺寸覆盖。

关于android - 如何决定用作 android 的 VectorDrawable 的 svg 文件的大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38032634/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com