后浪云鸿蒙OS教程:鸿蒙OS Text.TextColorObserver

Text.TextColorObserver

public static interface Text.TextColorObserver

提供一个观察者来监听组件中的文本颜色变化。

每次文本颜色发生变化时都会调用 (int,int) 方法。

方法总结

修饰符和类型方法描述
voidonTextColorChanged(int before, int after)当文本颜色改变时调用。

方法详情

onTextColorChanged

void onTextColorChanged(int before, int after)

当文本颜色改变时调用。

参数:

参数名称参数描述
before指示以前的文本颜色。
after指示当前文本颜色。

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/159807.html<

(0)
运维的头像运维
上一篇2025-03-17 11:34
下一篇 2025-02-10 21:47

相关推荐

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注