标签:android style blog color io 使用 div sp cti
使用Spinner遇到不少坑啊
1.调用了setSelection()之后不会马上调用onItemSelected
2.想调用setSelection之后不调用onItemSelected,需要写如下代码,注意顺序
spinner.setSelection(spinnerItem, true);//这里必须传true参数,否则还是会调用onItemSelected spinner.setOnItemSelectedListener(this);
标签:android style blog color io 使用 div sp cti
原文地址:http://www.cnblogs.com/baron89/p/3974578.html