codecamp

鸿蒙OS Text.TextColorObserver

Text.TextColorObserver

public static interface Text.TextColorObserver

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

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

方法总结

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

方法详情

onTextColorChanged

void onTextColorChanged(int before, int after)

当文本颜色改变时调用。

参数:

参数名称 参数描述
before 指示以前的文本颜色。
after 指示当前文本颜色。
鸿蒙OS Text.EditorActionListener
鸿蒙OS Text.TextObserver
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定