简体   繁体   English

如何将数据库中的数据显示到微调器中?

[英]How to show the data from a database into a spinner?

I have problem in retrieving data in my spinner.我在我的微调器中检索数据时遇到问题。

If String we can call it by如果是 String 我们可以调用它

 text.setText(tex1);
 text2.setText(text2);

and how do i call text3 which is spinner into the setText?以及如何将作为微调器的 text3 调用到 setText 中? I know that setText is only for String but I don't know on how to call in in spinner.我知道 setText 仅适用于 String 但我不知道如何在微调器中调用。

You have to create an ArrayAdapter and the following Documentary should help you out: Spinners您必须创建一个 ArrayAdapter,以下文档应该可以帮助您: Spinners

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM