private <E> View createSpinner(MultipleChoicheProfileField<E> field, E currentValue, FieldValueListener<E> listener, ViewGroup container) {
		View result = mInflater.inflate(R.layout.profileedit_field_multiplechoiche, container, false);

		String friendlyName = mHelper.getFriendlyNameOfField(field);
		((TextView) result.findViewById(R.id.profileedit_field_identifier)).setText(friendlyName);

		Spinner spinner = (Spinner) result.findViewById(R.id.profileedit_field_multiple_value);
		ArrayAdapter<E> adapter = new ArrayAdapter<E>(mContext, android.R.layout.simple_list_item_1, field.getChoiches());
		spinner.setAdapter(adapter);

		int index = indexOf(field.getChoiches(), currentValue);
		if (index >= 0) {
			spinner.setSelection(index, false);
		}

		spinner.setOnItemSelectedListener(new OnItemSelectedAdapter<E>(field, listener, adapter));
		setUpCircleView(result, field, listener);
		return result;
	}
private <E> View createSpinner(MultipleChoicheProfileField<E> field, E currentValue, FieldValueListener<E> listener, ViewGroup container) {
		View result = mInflater.inflate(R.layout.profileedit_field_multiplechoiche, container, false);

		String friendlyName = mHelper.getFriendlyNameOfField(field);
		((TextView) result.findViewById(R.id.profileedit_field_identifier)).setText(friendlyName);

		Spinner spinner = (Spinner) result.findViewById(R.id.profileedit_field_multiple_value);
		ArrayAdapter<E> adapter = new ArrayAdapter<E>(mContext, android.R.layout.simple_list_item_1, field.getChoiches());
		spinner.setAdapter(adapter);

		int index = indexOf(field.getChoiches(), currentValue);
		if (index >= 0) {
			spinner.setSelection(index, false);
		}

		spinner.setOnItemSelectedListener(new OnItemSelectedAdapter<E>(field, listener, adapter));
		setUpCircleView(result, field, listener);
		return result;
	}
private < E > View createSpinner ( MultipleChoicheProfileField < E > field , E currentValue , FieldValueListener < E > listener , ViewGroup container ) { View result = mInflater . inflate ( R . layout . profileedit_field_multiplechoiche , container , false ) ; String friendlyName = mHelper . getFriendlyNameOfField ( field ) ; ( ( TextView ) result . findViewById ( R . id . profileedit_field_identifier ) ) . setText ( friendlyName ) ; Spinner spinner = ( Spinner ) result . findViewById ( R . id . profileedit_field_multiple_value ) ; ArrayAdapter < E > adapter = new ArrayAdapter < E > ( mContext , android . R . layout . simple_list_item_1 , field . getChoiches ( ) ) ; spinner . setAdapter ( adapter ) ; int index = indexOf ( field . getChoiches ( ) , currentValue ) ; if ( index >= 0 ) { spinner . setSelection ( index , false ) ; } spinner . setOnItemSelectedListener ( new OnItemSelectedAdapter < E > ( field , listener , adapter ) ) ; setUpCircleView ( result , field , listener ) ; return result ; }
Edit view for multiple choiche fields
Edit view for multiple choiche fields