在使用这个方法的时候必须对数组进行排序 Arrays.sort(数组); //使用java的默认排序方法 spinner.setSelection(Arrays.binarySearch(数组, 要设置的默认值), true);