微调的数据串 [英] Spinner data to string
本文介绍了微调的数据串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有数据为界的微调,我想选择它,并把一个变量选择的字符串。
I have a spinner bounded with data, and I want to select it and put the string selected in a variable..
我怎样才能做到这一点?
How can I do this?
推荐答案
您可以使用的 getSelectedItem 以获得当前选择的项目。如果你已经绑定到一个ArrayAdapter<串>中,这将是值
You can use getSelectedItem to get the currently selected item. If you've bound to an ArrayAdapter<String>, this will be the value.
希望这有助于
菲尔Lello
这篇关于微调的数据串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文