如何在发生操作时更改文本视图并将其显示在用户面前
编辑:我希望用户点击一个按钮,使整数值逐渐增加 1。我还希望用户能够看到正在发生的情况。我不知道必须使用什么代码来更改文本视图并使其显示整数而不是字符串值。我也愿意将整数值更改为字符串值,然后显示它,但我尝试了这种方法,但它不允许我更改字符串。常规代码可以更改 XML 吗?如果仍然不清楚,请告诉我。谢谢。
Edit: I would like for the user to hit a button that causes an integer value to increase incrementally by 1. I would also like for the user to see this as it is happening. I do not know what code I have to use to change the text view and make it show an integer rather than a string value. I would also be up for changing an integer value into a string value and then have it displayed, but i tried this one way and it would not allow me to change the string. Can the regular code change the XML. If still not clear let me know please. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题不太清楚,如果这就是您的意思(运行此活动),这里有一个示例代码(运行此活动):::
Ur question is not so clear, here is a sample code if thats what u mean (Run this activity):::