Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有类似的东西:
TextView description_label; description_label.setText("Information");
如何选择/设置文本的颜色。例如。以绿色显示“信息”
打电话description.setTextColor()。或者android:textColor在xml中使用。
description.setTextColor()
android:textColor
TextView description_label; description_label.setTextColor(Color.GREEN); description_label.setText("Information");