您好,我有一个自定义的微调器,它显示字符串数组没有任何问题。但是,当我添加onItemSelectedListener时,我的应用程序将在加载片段时崩溃。spinner.adapter = adapter // without adding the below, the application will work smoothly
spinner.onItemSelectedListener= object : AdapterView.OnIt
android.R.layout.simple_spinner_dropdown_item); gSpinner.setOnItemSelectedListener(onItemSelectedListenertextview setText() that should update the text view // evrtime there is a change in the selection
OnItemSelec
我在选项卡片段中有微调器,并且我的代码中需要OnItemSelectedListener。我正在寻找一些示例,但它们大多是用MainActivitys编写的。turnPointsSpinner.setAdapter(myAdapter);
OnItemSelectedListenercountrySelectedListener = new OnItemSelectedListener