定义您的TextViewin 后onCreate(),只需调用setText(string)属性。
编辑:
setContentView(R.layout.your_current_layout);
TextView mytextview = (TextView) findViewById(R.id.textView1);
mytextview.setText("I'm called from your activity");
Run Code Online (Sandbox Code Playgroud)
享受 :-)
| 归档时间: |
|
| 查看次数: |
9995 次 |
| 最近记录: |