View.SetBackgroundResource(Int32) メソッド

定義

背景を特定のリソースに設定します。

[Android.Runtime.Register("setBackgroundResource", "(I)V", "GetSetBackgroundResource_IHandler")]
public virtual void SetBackgroundResource (int resid);
[<Android.Runtime.Register("setBackgroundResource", "(I)V", "GetSetBackgroundResource_IHandler")>]
abstract member SetBackgroundResource : int -> unit
override this.SetBackgroundResource : int -> unit

パラメーター

resid
Int32

リソースの識別子。

属性

注釈

背景を特定のリソースに設定します。 リソースは Drawable オブジェクトを参照するか、0 を参照して背景を削除する必要があります。

の Java ドキュメント android.view.View.setBackgroundResource(int)

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

適用対象