This is my listView
<ListView
android:id="@+id/productListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:list="@{page.results}"/>
I get this error:
java.lang.RuntimeException: Found data binding errors. ****/ data binding error ****msg:Cannot find the setter for attribute 'app:list' with parameter type java.util.List on android.widget.ListView. loc:33:20 - 33:31 ****\ data binding error ****
This is my BindingAdapter
@BindingAdapter({"bind:list"})
public static void bindList(Context context, ListView view, ObservableArrayList<Result> list) {
ProductsAdapter arrayAdapter = new ProductsAdapter(context,list);
view.setAdapter(arrayAdapter);
}
Can someone please help with this issue.