语言

ShortcutManager.IconMaxWidth 属性

定义

返回图标的最大宽度(以像素为单位)。

public virtual int IconMaxWidth { [Android.Runtime.Register("getIconMaxWidth", "()I", "GetGetIconMaxWidthHandler", ApiSince=25)] get; }
[<get: Android.Runtime.Register("getIconMaxWidth", "()I", "GetGetIconMaxWidthHandler", ApiSince=25)>]
member this.IconMaxWidth : int

属性值

最大可见图标宽度(以像素为单位),不包括自适应图标内集。

特性

注解

返回图标的最大宽度(以像素为单位)。

请注意,此方法返回图标可见部分的最大宽度。 因此,它不考虑引入的 AdaptiveIconDrawable内嵌。 若要计算要用作 AdaptiveIconDrawable的位图图像,请将 1 + 2 * AdaptiveIconDrawable#getExtraInsetFraction() 乘以返回的大小。

Java文档android.content.pm.ShortcutManager.getIconMaxWidth()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于