Skip to content

CANNOT use Databinding with attr: sb_checked #52

@wangjingtian110

Description

@wangjingtian110

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions