Language

Icon.CreateWithResource メソッド

定義

オーバーロード

名前 説明
CreateWithResource(Context, Int32)

描画可能なリソースを指すアイコンを作成します。

CreateWithResource(String, Int32)

描画可能なリソースを指すアイコンを作成します。

CreateWithResource(Context, Int32)

描画可能なリソースを指すアイコンを作成します。

[Android.Runtime.Register("createWithResource", "(Landroid/content/Context;I)Landroid/graphics/drawable/Icon;", "", ApiSince=23)]
public static Android.Graphics.Drawables.Icon CreateWithResource(Android.Content.Context? context, int resId);
[<Android.Runtime.Register("createWithResource", "(Landroid/content/Context;I)Landroid/graphics/drawable/Icon;", "", ApiSince=23)>]
static member CreateWithResource : Android.Content.Context * int -> Android.Graphics.Drawables.Icon

パラメーター

context
Context

特定のリソース ID を解決するためにリソースを使用する必要があるアプリケーションのコンテキスト。

resId
Int32

描画可能リソースの ID

返品

属性

注釈

描画可能なリソースを指すアイコンを作成します。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

CreateWithResource(String, Int32)

描画可能なリソースを指すアイコンを作成します。

[Android.Runtime.Register("createWithResource", "(Ljava/lang/String;I)Landroid/graphics/drawable/Icon;", "", ApiSince=23)]
public static Android.Graphics.Drawables.Icon CreateWithResource(string? resPackage, int resId);
[<Android.Runtime.Register("createWithResource", "(Ljava/lang/String;I)Landroid/graphics/drawable/Icon;", "", ApiSince=23)>]
static member CreateWithResource : string * int -> Android.Graphics.Drawables.Icon

パラメーター

resPackage
String

対象のリソースを含むパッケージの名前

resId
Int32

描画可能リソースの ID

返品

属性

注釈

描画可能なリソースを指すアイコンを作成します。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象