Two-way data binding Converter
问题 I'm trying to use a converter from CharArray to String for my password two-way databinding field. var password = ObservableField<CharArray>() Following the doc : public class Converter { @InverseMethod("stringToCharArray") public static String charArrayToString( ClearableEditText view, char[] oldValue, char[] value ){ return value.toString(); } public static char [] stringToCharArray( ClearableEditText view, String oldValue, String value ){ return value.toCharArray(); } } In XML file I used