更新时间:2023-09-29 22:11:04
在您更改第二微调的内容,你需要调用 adapter2.notifyDataSetChanged()
。如果没有呼叫,用户界面不会与微调的新内容更新,你可能也有问题,引用的东西不存在了。
After you change the contents of the second Spinner, you need to call adapter2.notifyDataSetChanged()
. Without that call, the UI won't update with the new contents of the Spinner, and you could also have problems referencing things that don't exist anymore.