📜  text.settextcolor android - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:25.303000             🧑  作者: Mango

代码示例2
//From API 23 onward, getResources().getColor() is deprecated.
textView.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.color_black));