TextView.setText(int resid);
TextView.setText(CharSequence text);
这两个方法一不留神就弄错,你本来是调用TextView.setText(CharSequence text);的,如下面代码:
TextView.setText(Person.getMoney());
结果程序运行失败,原因在于getMoney()返回的是Integer类型。
所以要正确的写就应该这样写:
TextView.setText(person.getMoney()+"");
原文:http://blog.csdn.net/u012643122/article/details/46380911