共用方式為


Drawable.Alpha Property

Definition

Gets the current alpha value for the drawable.

public virtual int Alpha { [Android.Runtime.Register("getAlpha", "()I", "GetGetAlphaHandler")] get; set; }
[<get: Android.Runtime.Register("getAlpha", "()I", "GetGetAlphaHandler")>]
member this.Alpha : int with get, set

Property Value

Attributes

Remarks

Gets the current alpha value for the drawable. 0 means fully transparent, 255 means fully opaque. This method is implemented by Drawable subclasses and the value returned is specific to how that class treats alpha. The default return value is 255 if the class does not override this method to return a value specific to its use of alpha.

Java documentation for android.graphics.drawable.Drawable.getAlpha().

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