MobileInfoBtn 이라는 버튼 클릭시
strMobileInfomation 의 값을 MobileInfoText 에 표시하게 되는데 정상적으로 작동은 합니다.
그런데 MobileInfoBtn 버튼을 한번 클릭하고,
또 클릭하면 기존의 MobileInfoText 에표시되던 정보가 그대로 있는 상태에서 또 표시가 됩니다.
원하는것은 MobileInfoBtn 버튼을 클릭했을때 MobileInfoText 의 값이 초기화된후 strMobileInfomation 정보를 표시하고 싶습니다.
Button MobileInfoBtn = (Button) findViewById(R.id.MobileInfoBtn);
final EditText MobileInfoText = (EditText) findViewById(R.id.MobileInfoText);
MobileInfoBtn.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
String strMobileInfomation = null;
strMobileInfomation = "1234 ";
strMobileInfomation+= "\n5678 "
strMobileInfomation+= "\n9012"
MobileInfoText.append(strMobileInfomation);
}
});