ShortcutManager.IconMaxWidth Property

Definition

Return the max width for icons, in pixels.

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

Property Value

Attributes

Remarks

Return the max width for icons, in pixels.

Note that this method returns max width of icon's visible part. Hence, it does not take into account the inset introduced by AdaptiveIconDrawable. To calculate bitmap image to function as AdaptiveIconDrawable, multiply 1 + 2 * AdaptiveIconDrawable#getExtraInsetFraction() to the returned size.

Java documentation for android.content.pm.ShortcutManager.getIconMaxWidth().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to