如何EditText使用a 清除布局中的所有字段Clear Button.我有一个注册活动,有大约10个不同EditTexts.我知道我可以去拿一个具体的参考然后set.Text(""); 但我正在寻找一种更有活力的优雅方式.可能抓住Layout并遍历那里寻找EditText类型的所有项目,然后将其设置为"".不知道如何做到这一点,并尝试在网上搜索它,但没有运气.任何示例代码?
EditText
Clear Button
EditTexts
set.Text("")
Layout
""
android button clear android-edittext
android ×1
android-edittext ×1
button ×1
clear ×1