spinner适配器
for(int i = 1950 ; i<2016 ;i++)
{
listyear.add(i+"");
}
adapteryear = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, listyear);
adapteryear.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);year.setAdapter(adapteryear);
本文来自博客园,作者:LeeJuly,转载请注明原文链接:https://www.cnblogs.com/peterleee/p/9373784.html