How to add text to editext

前端 未结 5 1055
旧巷少年郎
旧巷少年郎 2021-01-05 13:03

I\'ve got a problem with populating an edittext. Using the following code i can set the text just fine, however what i am trying to do is add to the edittext. For example th

5条回答
  •  有刺的猬
    2021-01-05 13:16

    String title = bundle.getString("number1");
    EditText editText = (EditText) findViewById(R.id.editText1);
    editText.setText(editText.getText().toString() + title);
    

提交回复
热议问题