答案 0 :(得分:0)
您对所有的EditTexts执行以下操作
editText1000x.addTextChangedListener(new TextWatcher() {
public void afterTextChanged(Editable s) {
int sum = Integer.parseInteger(editText1000x.getText()) * 1000;
sum += Integer.parseInteger(editText500x.getText()) * 500;
//and so forth for all the other editTexts.
textView.setText("" + sum);
}
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
public void onTextChanged(CharSequence s, int start, int before, int count) {}
});