public void setType(int type) {
   this.type = type;
   String restoreValue = SearchConfig.USEINFO_CONFIG.get(type);
   if (!TextUtils.isEmpty(UserInfoConfig.getUserSelectedInfo(restoreValue))) {
     selectedItem = Integer.parseInt(UserInfoConfig.getUserSelectedInfo(restoreValue));
   }
   if (type == UserInfoConfig.TYPE_HEIGHT) {
     left_title.setText("cm");
     left_title.setVisibility(View.VISIBLE);
   } else if (type == UserInfoConfig.TYPE_WEIGHT) {
     left_title.setText("斤");
     left_title.setVisibility(View.VISIBLE);
   } else if (type == UserInfoConfig.TYPE_BLOOD_TYPE) {
     left_title.setText("型");
     left_title.setVisibility(View.VISIBLE);
   } else if (type == UserInfoConfig.TYPE_EDUCATION
       || type == UserInfoConfig.TYPE_HOUSE
       || type == UserInfoConfig.TYPE_INCOME
       || type == UserInfoConfig.TYPE_MARRIAGE
       || type == UserInfoConfig.TYPE_OCCUPATION
       || type == UserInfoConfig.TYPE_YIDILIAN) {
     left_title.setVisibility(View.GONE);
   }
 }
  public String getValue() {
    String restoreValue = SearchConfig.USEINFO_CONFIG.get(type);
    UserInfoConfig.saveUserSelectedInfo(restoreValue, currentPosition + "");

    return mData[currentPosition];
  }