閱讀英文

共用方式為


View.SetBackgroundColor(Color) Method

Definition

Sets the background color for this view.

[Android.Runtime.Register("setBackgroundColor", "(I)V", "GetSetBackgroundColor_IHandler")]
public virtual void SetBackgroundColor(Android.Graphics.Color color);

Parameters

color
Color

the color of the background

Attributes

Remarks

Sets the background color for this view.

Java documentation for android.view.View.setBackgroundColor(int).

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