Android:动态修改TextView文字内容

来源:互联网 发布:养猫还是养狗 知乎 编辑:程序博客网 时间:2024/05/12 21:47
//定义   private TextView txt_result;//使用findViewById 得到TextView对象txt_bpm = (TextView)findViewById(R.id.ecgviewbpm);//使用setText()方法修改文本txt_bpm.setText("hahaha");

原创粉丝点击