LauncherActivity.IconResizer.CreateIconThumbnail(Drawable) Method

Definition

Returns a Drawable representing the thumbnail of the specified Drawable.

[Android.Runtime.Register("createIconThumbnail", "(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;", "GetCreateIconThumbnail_Landroid_graphics_drawable_Drawable_Handler")]
public virtual Android.Graphics.Drawables.Drawable? CreateIconThumbnail (Android.Graphics.Drawables.Drawable? icon);
[<Android.Runtime.Register("createIconThumbnail", "(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;", "GetCreateIconThumbnail_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member CreateIconThumbnail : Android.Graphics.Drawables.Drawable -> Android.Graphics.Drawables.Drawable
override this.CreateIconThumbnail : Android.Graphics.Drawables.Drawable -> Android.Graphics.Drawables.Drawable

Parameters

icon
Drawable

The icon to get a thumbnail of.

Returns

A thumbnail for the specified icon or the icon itself if the thumbnail could not be created.

Attributes

Remarks

Returns a Drawable representing the thumbnail of the specified Drawable. The size of the thumbnail is defined by the dimension android.R.dimen.launcher_application_icon_size.

This method is not thread-safe and should be invoked on the UI thread only.

Java documentation for android.app.LauncherActivity.IconResizer.createIconThumbnail(android.graphics.drawable.Drawable).

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