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

CANNOT use Databinding with attr: sb_checked #52

Open
wangjingtian110 opened this issue May 26, 2022 · 1 comment
Open

CANNOT use Databinding with attr: sb_checked #52

wangjingtian110 opened this issue May 26, 2022 · 1 comment

Comments

@wangjingtian110
Copy link

<com.suke.widget.SwitchButton
android:layout_centerInParent="true"
android:layout_width="45dp"
android:layout_height="25dp"
app:sb_checked="@={model.enable}"
app:sb_checkline_color="@color/shiny_blue"
app:sb_show_indicator="false"
/>

Cannot find a getter for <com.suke.widget.SwitchButton app:sb_checked> that accepts parameter type 'java.lang.Boolean'

If a binding adapter provides the getter, check that the adapter is annotated correctly and that the parameter type matches.
Open File

Highly recommand to add databinding support!

@developmans
Copy link

developmans commented May 26, 2022 via email

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

2 participants