次の方法で共有


LayerDrawable.SetOpacity(Int32) Method

Definition

Sets the opacity of this drawable directly instead of collecting the states from the layers.

[Android.Runtime.Register("setOpacity", "(I)V", "GetSetOpacity_IHandler")]
public virtual void SetOpacity (int opacity);
[<Android.Runtime.Register("setOpacity", "(I)V", "GetSetOpacity_IHandler")>]
abstract member SetOpacity : int -> unit
override this.SetOpacity : int -> unit

Parameters

opacity
Int32

The opacity to use, or PixelFormat#UNKNOWN PixelFormat.UNKNOWN for the default behavior

Attributes

Remarks

Sets the opacity of this drawable directly instead of collecting the states from the layers.

Java documentation for android.graphics.drawable.LayerDrawable.setOpacity(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