Partager via


View.SolidColor Property

Definition

Override this if your view is known to always be drawn on top of a solid color background, and needs to draw fading edges.

public virtual int SolidColor { [Android.Runtime.Register("getSolidColor", "()I", "GetGetSolidColorHandler")] get; }
[<get: Android.Runtime.Register("getSolidColor", "()I", "GetGetSolidColorHandler")>]
member this.SolidColor : int

Property Value

The known solid color background for this view, or 0 if the color may vary

Attributes

Remarks

Override this if your view is known to always be drawn on top of a solid color background, and needs to draw fading edges. Returning a non-zero color enables the view system to optimize the drawing of the fading edges. If you do return a non-zero color, the alpha should be set to 0xFF.

Java documentation for android.view.View.getSolidColor().

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

See also