【发布时间】:2014-01-10 06:52:30
【问题描述】:
android 中有没有刷新整个布局或只刷新一个元素的命令,类似于 Visual Basic 中的刷新命令。
public void buttonAction(int buttonId){
Button btn=getButtonFromId(buttonId);
btn.setTextColor(Color.RED);
//here need some kind of screen refreshing in order to change the color
//... some long time executing code goes here
btn.setTextColor(Color.BLACK);
}
文本颜色永远不会变为红色
【问题讨论】:
-
默认文本颜色是什么?
标签: android eclipse button layout