Android.Views.View.SetBackgroundResource Method
Set the background to a given resource.

Syntax

[Android.Runtime.Register("setBackgroundResource", "(I)V", "GetSetBackgroundResource_IHandler")]
public virtual void SetBackgroundResource (int resid)

Parameters

resid
The identifier of the resource.

Remarks

Set the background to a given resource. The resource should refer to a Drawable object or 0 to remove the background.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1