edittext를 채우는 데 문제가 있습니다. 다음 코드를 사용하여 텍스트를 잘 설정할 수 있습니다. 그러나 내가하려는 것은 edittext에 추가하는 것입니다. 예를 들어 다음 코드는 내 편집 텍스트에 "1"을 표시하지만 다시 누르면 "1"이 "1"로 바뀝니다. 내가 4 번 누르면 1111이 표시됩니다.editext에 텍스트를 추가하는 방법
을 heres 내 코드 :이 sence하게
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.button1:
Button txtnum = (Button) findViewById(R.id.button1);
Bundle bundle = new Bundle();
bundle.putString("number1", txtnum.getText().toString());
String title = bundle.getString("number1");
((EditText) findViewById(R.id.editText1)).setText(title);
break;
희망. (나는 멍청이야.) 누군가 내가 이것을 도와 줄 수 있다면 정말 고맙겠습니다. 코드에서
editText.setText("hello");
: 덕분에 스티브
사용'APPEND을()'설정하려면
–