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!