我正在使用此示例代码来填充Spinner。数据从数据库中读取。选择正确显示-在本例中,它显示“绿色”和“红色”。SpinnerspinnerColor=(Spinner)findViewById(R.id.spinnertProfile);mProfileDbHelper=newProfileDbAdapter(this);mProfileDbHelper.open();CursorprofilesCursor=mProfileDbHelper.fetchAllProfiles();startManagingCursor(profilesCursor);//Createanarrayt