来自数据库的微调器数据导致textview [英] spinner data from database results in a textview

查看:103
本文介绍了来自数据库的微调器数据导致textview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨frds,我多次尝试从数据库中检索微调器数据并生成textview.Pls帮我解决这个问题。提前谢谢.......

Hi frds, I tried lot of times that to retrieve a spinner data from a database and results in a textview.Pls help me to solve this.Thanks in advance.......

推荐答案

因此将问题分解为2个部分。通过以下方式将数据从数据库加载到微调器。

http://www.androidhive.info/2012/06/android-populating-spinner-data-from-sqlite-database/ [ ^ ]

http://www.developerscode.com/2011/06/bind-data-in-spinner-from-database-in.html [ ^ ]

http://www.javatpoint.com/android-sqlite-example-with-spinner [ ^ ]

然后将微调器数据显示到textview ..

http://stackoverflow.com / questions / 15759403 / android-how-to-make-selected-spinner-item-to-textview [ ^ ]
So break the problem into 2 parts.Fist load data from database to spinner by following..
http://www.androidhive.info/2012/06/android-populating-spinner-data-from-sqlite-database/[^]
http://www.developerscode.com/2011/06/bind-data-in-spinner-from-database-in.html[^]
http://www.javatpoint.com/android-sqlite-example-with-spinner[^]
And then show spinner data to textview..
http://stackoverflow.com/questions/15759403/android-how-to-make-selected-spinner-item-to-textview[^]


这篇关于来自数据库的微调器数据导致textview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆