【发布时间】:2017-09-29 18:55:17
【问题描述】:
我正在从 Firebase 数据库中检索 4 个 Edittexts 和 1 个 Spinner 的值。
- Edittext -> fName
- Edittext -> lName
- Edittext -> dateOfBirth
- 微调器 -> carType
- Edittext -> carNumber
显示所有这些值。但是如何编辑它们并在单击按钮下更新。
关注documentation,但没有成功。
请看这个post。你会明白的
【问题讨论】:
-
你能显示你的代码吗
-
不清楚您要做什么。您要更新数据库中的数据吗?另外,将代码发布为您如何更新数据。
-
您是否使用
setValue()更新值? -
是的,我正在使用 setValue()
标签: android firebase firebase-realtime-database