【发布时间】:2016-03-31 09:35:10
【问题描述】:
一个普通的记分牌文本是这样的
所以我想制作这样的文本格式
这是代码
score = (TextView)findViewById(R.id.ct);
score.setText(String.valueOf(gamescore));
if (gamescore > highscore){
high.setText(String.valueOf(gamescore));
}
谁能解释一下?谢谢
【问题讨论】:
-
使用
String.format("%06d", gamescore)。 -
@Mohit 这与那个问题一点也不相似。
标签: java android text textview