Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Databinding errors #20

Open
shivaramki opened this issue May 22, 2018 · 2 comments
Open

Databinding errors #20

shivaramki opened this issue May 22, 2018 · 2 comments

Comments

@shivaramki
Copy link

shivaramki commented May 22, 2018

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 ****```
@malwinder-s
Copy link

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

@freemanfx
Copy link

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) {

}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants