我试过这段代码来显示一个插入的文本视图。那么,如果我想显示两个呢?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
hasil = (TextView)findViewById(R.id.textView1);
}
public void kirim(View v) {
EditText chat = (EditText)findViewById(R.id.editText1);
hasil.setText(chat.getText().toString());
}