T
T
Tised2015-08-06 14:38:40
Android
Tised, 2015-08-06 14:38:40

Android data binding cannot find handler method in class, can you help?

...
<variable name="handlers"
type="com.example.Handlers">
...

package com.example;
public class Handlers{

public void onClick(View v){}
}

Assignment error
android:onClick="@{handlers.onClick}"
Says it cannot find the onClick method in the Handlers class

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bracadabra, 2015-08-09
@bracadabra

Perhaps this is a bug , and the fixes are simply not included in the release yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question