wasabeef / richeditor-android

RichEditor for Android is a beautiful Rich Text WYSIWYG Editor for Android.
Apache License 2.0
6.26k stars 1.2k forks source link

May I know how to use it with two way databinding? #242

Open aishwarya-kamal opened 4 years ago

aishwarya-kamal commented 4 years ago

I'm having trouble with using it with data binding. Could you please help?

This is the error - Caused by: android.databinding.tool.util.LoggedErrorException: Found data binding error(s):

[databinding] {"msg":"Cannot find a getter for \u003cjp.wasabeef.richeditor.RichEditor android:text\u003e that accepts parameter type \u0027java.lang.String\u0027\n\nIf a binding adapter provides the getter, check that the adapter is annotated correctly and that the parameter type matches.....

davidhowe commented 2 years ago

You need to bind to the app:html attribute. By your error its seems you are binding to android:text