0
Error:cannot generate view binders java.util.ConcurrentModificationException
tritt auf, wenn versucht wird, einen ObservableBoolean
Wert in XML festzulegen.ConcurrentModificationException, die Android XML mit Datenbindung erstellt
XML:
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Soy Milk"
android:onClick="@{() -> model.useSoy.set(true)}"
/>
Modell:
public ObservableBoolean useSoy = new ObservableBoolean(false);
Wie kann ich dieses Problem beheben?
Aber eine bessere Nutzung 'boolean' statt' Boolean' – tynn