Most visited

Recently visited

Added in API level 3

LauncherActivity.IconResizer

public class LauncherActivity.IconResizer
extends Object

java.lang.Object
   ↳ android.app.LauncherActivity.IconResizer


实用程序类调整图标大小以匹配默认图标大小。

Summary

Public constructors

LauncherActivity.IconResizer()

Public methods

Drawable createIconThumbnail(Drawable icon)

返回表示指定Drawable的缩略图的Drawable。

Inherited methods

From class java.lang.Object

Public constructors

LauncherActivity.IconResizer

Added in API level 3
LauncherActivity.IconResizer ()

Public methods

createIconThumbnail

Added in API level 3
Drawable createIconThumbnail (Drawable icon)

返回表示指定Drawable的缩略图的Drawable。 缩略图的大小由android.R.dimen.launcher_application_icon_size维度定义。 此方法不是线程安全的,只应在UI线程上调用。

Parameters
icon Drawable: The icon to get a thumbnail of.
Returns
Drawable A thumbnail for the specified icon or the icon itself if the thumbnail could not be created.

Hooray!