skedgo/DateTimeRangePicker

Databinding errors

Opened this issue · 2 comments

Steps to recreate the error

  • Install the library using the implementation 'com.github.skedgo:DateTimeRangePicker:v1.3' in build gradle.

  • Enable data binding in your project dataBinding { enabled = true } .

  • Run the app.

  • I get the following errors

****/ data binding error ****msg:Cannot find the setter for attribute 'app:isDone' with parameter type android.databinding.ObservableBoolean on android.support.v7.widget.Toolbar.
file:C:\Users\username\.gradle\caches\transforms-1\files-1.1\DateTimeRangePicker-v1.3.aar\5ef60d6b1e63abe781ccc1ed1b97ba88\res\layout\date_time_range_picker.xml
loc:27:22 - 27:44
****\ data binding error ****```

I got this error too. Is it possible to fix it?

I added this class and the error went away. However I ran into other problems I just gave up after serveral hours of trying

public class DatepickerBindingAdapter {

@BindingAdapter({"isDone"})
public static void setIsDone(Toolbar toolbar, ObservableBoolean isDone) {

}

@BindingAdapter({"isVisible"})
public static void setIsVisibleBoolean(TextView textView, boolean isVisible) {

}

@BindingAdapter({"isVisible"})
public static void setIsVisibleBooleanObs(LinearLayout source, ObservableBoolean isVisible) {

}

}