为Spinner填充数据后设置默认选中值

        spinner.setAdapter(adapter);
        spinner.setSelection(
2 , true );

猜你喜欢

转载自blog.csdn.net/lyc088456/article/details/80096650