SwitchButton icon indicating copy to clipboard operation
SwitchButton copied to clipboard

CANNOT use Databinding with attr: sb_checked

Open wangjingtian110 opened this issue 3 years ago • 1 comments

<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!

wangjingtian110 avatar May 26 '22 01:05 wangjingtian110

已收到!

developmans avatar May 26 '22 01:05 developmans