我想在选择“其他”选项时输入文本
Spinner spn;
........
adapterString = new String[]
{
"A",
"B",
"Other"
};
ArrayAdapter<String> adptLubricatorType = new ArrayAdapter<String>(this,
android.R.layout.simple_spinner_item, adapterString);
spn.setAdapter(adptLubricatorType);
spn.setOnItemSelectedListener(listenerspn);
private Spinner.OnItemSelectedListener listenerspn = new Spinner.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
}
当我拉下微调器并选择“其他”时,如何插入文本?
我希望我可以像edittext一样输入,当我点击其他东西时,“Other”会变成我刚刚输入的字符串