从列表内的微调获取值 [英] Getting values from the spinner inside the list
本文介绍了从列表内的微调获取值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经用列表适配器扩展列表活动创建Android应用程序....里面的名单我有微调..我怎样才能从list..tell一些想法里面的微调值提前.Thanks ..
I've create the android application program using list adapter that extends the list activity....Inside the list i am having the spinner.. how can i get the value from the spinner inside the list..tell some idea.Thanks in Advance..
推荐答案
试试这个::
@Override
public void onItemSelected(AdapterView<?> parent, View view,
int position, long id) {
String str = mSpinner.getSelectedItem().toString();
// getting item id by this
myId = parent.getItemAtPosition(position).toString();
}
这篇关于从列表内的微调获取值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文