错误提示:
java.lang.RuntimeException: Unable to start activity ComponentInfo{xx activity}: java.lang.RuntimeException: setOnItemClickListener cannot be used with a spinner.
解决方法:
用setOnItemSelectedListener代替setOnItemClickListener
错误提示:
java.lang.RuntimeException: Unable to start activity ComponentInfo{xx activity}: java.lang.RuntimeException: setOnItemClickListener cannot be used with a spinner.
解决方法:
用setOnItemSelectedListener代替setOnItemClickListener
转载于:https://www.cnblogs.com/wangcan/p/3464680.html