如何在计算器应用中使用删除按钮删除单个值?
我正在制作一个Android计算器应用程序。我想删除输入而不是清除整个值。 这是用于添加值的代码,
private void updateText(String value) {
output = output + value;
display.setText(output);
}
我如何使用删除按钮删除单个值? strong text
I am making an Android Calculator App. I want to delete an input instead of clearing the whole value.
This is code for adding values
private void updateText(String value) {
output = output + value;
display.setText(output);
}
How can I delete a single value using the delete button?strong text
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试以下
注意:输入值必须非编号。因此,请在通过之前检查
Try this
Note: Input value must non-null. So check before passing