j'obtenir une étrange erreur tout en utilisant les données de l'API de liaison:Aucun type de ressource spécifié (au « texte » avec la valeur « @ = {bindingVariable.propertyName} »)
Aucun type de ressource spécifié (à ' text 'with value' @ = {bindingVariable.propertyName} ').
Voici mon xml:
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="address"
type="com.example.Address"/>
</data>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/edit_hint_street"
android:text="@={address.street}"
tools:text="Evergreen terrace 742"/>
</android.support.design.widget.TextInputLayout>
</layout>
C'est ma classe POJO:
public class Address {
private String street;
public void setStreet(String street) {
this.street = street;
}
public String getStreet() {
return street;
}
}