PackageManager.GetDrawable(String, Int32, ApplicationInfo) PackageManager.GetDrawable(String, Int32, ApplicationInfo) Method

Definition

Retrieve an image from a package.

[Android.Runtime.Register("getDrawable", "(Ljava/lang/String;ILandroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable;", "GetGetDrawable_Ljava_lang_String_ILandroid_content_pm_ApplicationInfo_Handler")]
public abstract Android.Graphics.Drawables.Drawable GetDrawable (string packageName, int resid, Android.Content.PM.ApplicationInfo appInfo);
abstract member GetDrawable : string * int * Android.Content.PM.ApplicationInfo -> Android.Graphics.Drawables.Drawable

Parameters

packageName
String String

The name of the package that this icon is coming from. Cannot be null.

resid
Int32 Int32

The resource identifier of the desired image. Cannot be 0.

appInfo
ApplicationInfo ApplicationInfo

packageName

Returns

Remarks

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