android在代码中设置Spinner默认选中的值

spinner.setSelection(1,true);

其中,1为position值

就这样一行代码,很重要  一定要加true

猜你喜欢

转载自blog.csdn.net/lpcrazyboy/article/details/80253563