ColorStateList.WithAlpha(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new ColorStateList that has the same states and colors as this one but where each color has the specified alpha value (0-255).
[Android.Runtime.Register("withAlpha", "(I)Landroid/content/res/ColorStateList;", "GetWithAlpha_IHandler")]
public virtual Android.Content.Res.ColorStateList WithAlpha (int alpha);
[<Android.Runtime.Register("withAlpha", "(I)Landroid/content/res/ColorStateList;", "GetWithAlpha_IHandler")>]
abstract member WithAlpha : int -> Android.Content.Res.ColorStateList
override this.WithAlpha : int -> Android.Content.Res.ColorStateList
Parameters
- alpha
- Int32
The new alpha channel value (0-255).
Returns
A new color state list.
- Attributes
Remarks
Creates a new ColorStateList that has the same states and colors as this one but where each color has the specified alpha value (0-255).
Java documentation for android.content.res.ColorStateList.withAlpha(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.