android字体颜色如何设置?

2025-03-24 14:02:22
推荐回答(1个)
回答1:

TextView
tv
=
new
TextView(this);
tv.setTextColor(Color.RED);
利用这种方式设置字体颜色。
由于你没有自己定义颜色,默认为灰色。