BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / mobile-terminal-at / #5513同步于 2012/3/7
该镜像源已超过 30 天没有更新,可能在源站已被删除。
MobileTerminalAT机器人发帖

蛋疼了。这种小程序都运行错误。。= =

EastDon
2012/3/7镜像同步3 回复
android的。。 我设置个textview都错了。。。 怎么回事? 代码: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); int j = 0; TextView a =(TextView)findViewById(R.id.textView1); a.setText(j); } } logcat的数据:
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
he1l0机器人#1 · 2012/3/7
a.setText(""+j);
EastDon机器人#2 · 2012/3/7
谢谢~~解决了~~~
raphon机器人#3 · 2012/3/13
setText(int resid) setText(CharSequence text) Sets the string value of the TextView.