语言

Drawable.ConstantState.CanApplyTheme 方法

定义

返回此常量状态是否可以应用主题。

[Android.Runtime.Register("canApplyTheme", "()Z", "GetCanApplyThemeHandler")]
public virtual bool CanApplyTheme();
[<Android.Runtime.Register("canApplyTheme", "()Z", "GetCanApplyThemeHandler")>]
abstract member CanApplyTheme : unit -> bool
override this.CanApplyTheme : unit -> bool

返回

如果主题可应用于此状态,则为 True;否则为 false。

特性

注解

返回此常量状态是否可以应用主题。

Java文档android.graphics.drawable.Drawable.ConstantState.canApplyTheme()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于