private < E > View createStandardEditView ( ProfileField < E > field , E currentValue , FieldValueListener < E > listener , ViewGroup container ) { View result = mInflater . inflate ( R . layout . profileedit_field_standard , container , false ) ; String friendlyName = mHelper . getFriendlyNameOfField ( field ) ; ( ( TextView ) result . findViewById ( R . id . profileedit_field_identifier ) ) . setText ( friendlyName ) ; EditText editText = ( EditText ) result . findViewById ( R . id . profileedit_field_value ) ; editText . addTextChangedListener ( new OnEditorActionAdapter <> ( listener , field ) ) ; if ( currentValue != null ) { editText . setText ( mHelper . convertToFriendlyString ( field , currentValue ) ) ; } setUpCircleView ( result , field , listener ) ; return result ; }
Edit view for all other fields