語言

AlertDialog.SetIconAttribute(Int32) 方法

定義

設定一個由主題屬性提供的圖示。

[Android.Runtime.Register("setIconAttribute", "(I)V", "GetSetIconAttribute_IHandler")]
public virtual void SetIconAttribute(int attrId);
[<Android.Runtime.Register("setIconAttribute", "(I)V", "GetSetIconAttribute_IHandler")>]
abstract member SetIconAttribute : int -> unit
override this.SetIconAttribute : int -> unit

參數

attrId
Int32

指向可繪製資源的主題屬性的識別碼。

屬性

備註

設定一個由主題屬性提供的圖示。 例如,Android。R.attr.alertDialogIcon

Android 參考資料。android.app.AlertDialog.setIconAttribute

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於