逐个删除和长按删除是怎么实现的
android
------解决方案--------------------
button.setOnClickListener(this);//短嗯
button.setOnLongClickListener(this);//长嗯
text.setText("");//clear
text.setText(text.getText.toString().substring(0, text.getText.toString().length()-1)); //sub -1