MockPackageManager.GetDrawable(String, Int32, ApplicationInfo) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從封裝擷取映像。
[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 override Android.Graphics.Drawables.Drawable? GetDrawable(string? packageName, int resid, Android.Content.PM.ApplicationInfo? appInfo);
[<Android.Runtime.Register("getDrawable", "(Ljava/lang/String;ILandroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable;", "GetGetDrawable_Ljava_lang_String_ILandroid_content_pm_ApplicationInfo_Handler")>]
override this.GetDrawable : string * int * Android.Content.PM.ApplicationInfo -> Android.Graphics.Drawables.Drawable
參數
- packageName
- String
這個圖示來自的包裹名稱。 不可為空值。
- resid
- Int32
目標影像的資源識別碼。 不可能是0。
- appInfo
- ApplicationInfo
關於 <var>packageName</var> 的整體資訊。 這可能是空的,若需要,應用程式資訊會自動幫你取得;如果你已經有這些資訊,提供這裡會更有效率。
傳回
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。