AndroidDataBindingExample icon indicating copy to clipboard operation
AndroidDataBindingExample copied to clipboard

为什么我的User类集成了BaseObservable,里面写了@Bindable没有生成BR

Open bethinner opened this issue 9 years ago • 1 comments

public class User extends BaseObservable{ private String firstName; private String lastName;

@Bindable
public String getFirstName() {
    return firstName;
}

public void setFirstName(String firstName) {
    this.firstName = firstName;
    notifyPropertyChanged(BR.firstName);
}
@Bindable
public String getLastName() {
    return lastName;
}

public void setLastName(String lastName) {
    this.lastName = lastName;
    notifyPropertyChanged(BR.lastName);
}
@Bindable
public String getTotalName() {
    return this.firstName  + this.lastName;
}

}

BR,用不了

bethinner avatar Feb 25 '16 03:02 bethinner

我也遇到同样的问题了

a805766066 avatar Jul 13 '16 15:07 a805766066